Код: Выделить всё
route add default 192.168.2.1
Код: Выделить всё
netstat -nr
Routing tables
Internet:
Destination Gateway Flags Refs Use Mtu Prio Iface
224/4 127.0.0.1 URS 0 0 32768 8 lo0
127/8 127.0.0.1 UGRS 0 0 32768 8 lo0
127.0.0.1 127.0.0.1 UHhl 1 6 32768 1 lo0
192.168.1/24 192.168.2.1 UGS 2 4 - 8 re0
192.168.2/24 192.168.2.68 UCn 1 0 - 4 re0
192.168.2.1 UHLch 1 3 - 3 re0
192.168.2.68 UHLl 0 4 - 1 re0
192.168.2.255 192.168.2.68 UHb 3 8 - 1 re0
Код: Выделить всё
cat /etc/hostname.re0
dhcp
Код: Выделить всё
cat /etc/mygate
192.168.2.1
Код: Выделить всё
subnet 192.168.2.0 netmask 255.255.255.0 {
option routers 192.168.2.1;
}