1.- Setting a virtual interface on "Lurch"
# cat /etc/network/interfaces
auto eth0
iface eth0 inet static
address 172.16.2.4
netmask 255.255.0.0
gatewat 172.16.255.254
auto eth0:0
iface eth0:0 inet static
address 10.0.0.1
netmask 255.0.0.0
2 .- Setting interfaces on "pugsley" and "merlina"
3 .- Nating on "lurch"
# iptables -t nat -F
# echo 1 > /proc/sys/net/ipv4/ip_forward
tip: You can edit the file /etc/sysctl.conf uncomenting
net.ipv4.ip_forward=1
# iptables -t nat -A POSTROUTING -o eth0 -s 10.0.0.0/8 -j MASQUERADE
0 comment:
Post a Comment