Redhatと比べるとstatic-routeの記載がめんどい。
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet static address 10.1.1.10 netmask 255.255.192.0 network 10.1.0.0 broadcast 10.1.1.255 #gateway 10.1.0.1 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 10.1.1.8 10.1.1.9 post-up route add -net 10.5.0.0 netmask 255.255.0.0 gw 10.1.0.1 post-up route add -net 10.6.0.0 netmask 255.255.0.0 gw 10.1.0.1 pre-down route del -net 10.5.0.0 netmask 255.255.0.0 gw 10.1.0.1 pre-down route del -net 10.6.0.0 netmask 255.255.0.0 gw 10.1.0.1 allow-hotplug eth1 iface eth1 inet static address 10.2.1.10 netmask 255.255.192.0 network 10.2.0.0 broadcast 10.2.1.255 gateway 10.2.0.1 dns-nameservers 10.2.1.8 10.2.1.9 post-up route add -net 0.0.0.0 netmask 0.0.0.0 gw 10.2.0.1 pre-down route del -net 0.0.0.0 netmask 0.0.0.0 gw 10.2.0.1
0 件のコメント:
コメントを投稿