以下过程说明如何在配置 IPMP 时保留缺省路由。
必须使用控制台执行此过程。如果使用 ssh 或 telnet 命令登录,则在执行后续步骤时连接将丢失。
# netstat -nr
# route -p delete default gateway-address -ifp interface
# route -p add default gateway-address
# netstat -nr
# svcadm restart routing-setup
本示例假定在安装过程中为 net0 定义了缺省路由。
# netstat -nr Routing Table: IPv4 Destination Gateway Flags Ref Use Interface ------------- ------------ -------- ----- ----------- -------- default 10.153.125.1 UG 107 176682262 net0 10.153.125.0 10.153.125.222 U 22 137738792 net0 # route -p delete default 10.153.125.1 -ifp net0 # route -p add default 10.153.125.1 # netstat -nr Routing Table: IPv4 Destination Gateway Flags Ref Use Interface ------------- ------------ -------- ----- ----------- -------- default 10.153.125.1 UG 107 176682262 10.153.125.0 10.153.125.222 U 22 137738792 net0