Arahan Tambahan dalam interfaces
# The loopback network interface
auto lo
auto eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.0.14
netmask 255.255.255.0
broadcast 192.168.0.255
network 192.168.0.0
gateway 192.168.0.1
post-up iptables-restore < /etc/iptables.up.rules
auto eth1
iface eth1 inet static
address 10.0.1.190
netmask 255.255.255.0
broadcast 10.0.1.255
network 10.0.1.0
hwaddress ether 00:0c:29:13:db:26
up route add -net 10.0.110.0/24 gw 10.0.1.254
up route add -net 10.0.14.0/24 gw 10.0.1.254
up route add -net 22.30.3.0/24 gw 10.0.1.254
# The loopback network interface
auto lo
auto eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.0.14
netmask 255.255.255.0
broadcast 192.168.0.255
network 192.168.0.0
gateway 192.168.0.1
post-up iptables-restore < /etc/iptables.up.rules
auto eth1
iface eth1 inet static
address 10.0.1.190
netmask 255.255.255.0
broadcast 10.0.1.255
network 10.0.1.0
hwaddress ether 00:0c:29:13:db:26
up route add -net 10.0.110.0/24 gw 10.0.1.254
up route add -net 10.0.14.0/24 gw 10.0.1.254
up route add -net 22.30.3.0/24 gw 10.0.1.254
No comments:
Post a Comment
Terima kasih