config route table and restart network on FreeBSD
-------------------------------------------------
[root@toady root]# /etc/rc.d/netif
[root@toady root]# /etc/rc.d/routing
[root@toady root]# netstat -nr
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 137.111.20.129 UGS 0 1890 fxp0
127.0.0.1 127.0.0.1 UH 0 225 lo0
137.111.20.128/25 link#1 UC 0 0 fxp0
137.111.20.129 link#1 UHLW 1 12 fxp0
137.111.20.192 00:06:5b:20:b7:09 UHLW 0 5654 fxp0 78
137.111.20.206 00:0f:1f:65:c6:af UHLW 0 196 fxp0 785
137.111.20.252 00:90:27:2f:4a:f7 UHLW 0 1142 fxp0 1156
192.168.1 link#2 UC 0 0 fxp1
Internet6:
Destination Gateway Flags Netif Expire
::1 ::1 UH lo0
fe80::%fxp0/64 link#1 UC fxp0
fe80::290:27ff:fe35:ff10%fxp0 00:90:27:35:ff:10 UHL lo0
fe80::%fxp1/64 link#2 UC fxp1
fe80::290:27ff:fe35:ff48%fxp1 00:90:27:35:ff:48 UHL lo0
fe80::%lo0/64 fe80::1%lo0 U lo0
fe80::1%lo0 link#4 UHL lo0
ff01::/32 ::1 U lo0
ff02::%fxp0/32 link#1 UC fxp0
ff02::%fxp1/32 link#2 UC fxp1
ff02::%lo0/32 ::1 UC lo0
If you don't want to reboot to pick up the IP address for the default gateway, use ``route'' to
manually add the default route.
AIX: route add 0 192.168.1.1
HP-UX: route add 192.168.1.1
FreeBSD, NetBSD, OpenBSD, Solaris: route add default 192.168.1.1
Linux Redhat: route add default gw 192.168.1.1
|