ルーティング デフォルトゲートウェイ
# route show Routing tables Internet: Destination Gateway Flags Refs Use Mtu Interface loopback localhost UGRS 0 0 33224 lo0 localhost localhost UH 1 1222 33224 lo0 192.168.cxx/24 link#4 UC 2 0 - ne0 192.168.cxx.pc xx:xx:xx:xx:xx:xx UHLc 1 1372 - ne0 192.168.cxx.xxx xx:xx:xx:xx:xx:xx UHLc 0 416 - ne0 BASE-ADDRESS.MCAST localhost URS 0 0 33224 lo0
http://d.hatena.ne.jp/ore_de_work/20060425#1146005110
ああー、外からこのサーバに静的マスカレード貼っても
アクセスできなかったのはこのためか(;゜Д゜)
# route add default 192.168.cxx.xxx
もうっ ルーティングのためじゃないんだからねっ
# route show Routing tables Internet: Destination Gateway Flags Refs Use Mtu Interface default 192.168.cxx.xxx UGS 0 38 - ne0 loopback localhost UGRS 0 0 33224 lo0 localhost localhost UH 1 1222 33224 lo0 192.168.cxx/24 link#4 UC 2 0 - ne0 192.168.cxx.pc xx:xx:xx:xx:xx:xx UHLc 1 1372 - ne0 192.168.cxx.xxx xx:xx:xx:xx:xx:xx UHLc 0 416 - ne0 BASE-ADDRESS.MCAST localhost URS 0 0 33224 lo0
OpenBSD のこの設定は、
/etc/mygate に書きます。
# pwd /etc # cat > mygate 192.168.cxx.xxx ^C