mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
- 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
1 changed files with 3 additions and 2 deletions
|
|
@ -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 a new issue