- In addtition to flushing the routes, also flush the arp cache when bringing
up the new network link. Submitted by: Guido van Rooij <guido@gvr.org>
This commit is contained in:
parent
d73424aa6b
commit
51d18e4a08
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31326
@ -1,8 +1,8 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# pccardether interfacename [ifconfig option]
|
||||
# pccard_ether interfacename [ifconfig option]
|
||||
#
|
||||
# example: pccardether ep0 -link0
|
||||
# example: pccard_ether ep0 -link0
|
||||
#
|
||||
|
||||
# Suck in the /etc/rc.conf variables
|
||||
@ -29,6 +29,7 @@ fi
|
||||
if [ "x${static_routes}" != "x" ]; then
|
||||
# flush beforehand, just in case....
|
||||
route -n flush
|
||||
arp -d -a
|
||||
for i in ${static_routes}; do
|
||||
eval route_args=\$route_${i}
|
||||
route add ${route_args}
|
||||
|
Loading…
Reference in New Issue
Block a user