These are what I have right now:
- In my network configured with 10.10.4.0/24, I called it LAN-A, I have computer that already set up as my router/gateway, so I can accessing the Internet with IP number is 10.10.4.1. (it use DHCP) from inside LAN-A
- In my office I have network configured with 192.168.10.0/24, I called it LAN-B
Internet is already connected in LAN-A and I decided to connecting LAN-A and LAN-B vice versa.
Then I set one of my computer with 2 Ethernet card, that is eth0 and eth1 so it would be a router between LAN-A and LAN-B. I will show you how my /etc/network/interface is configured:
- Code: Select all
# The loopback network interface
auto lo
iface lo inet loopback
#to LAN A - special for this comp. I used static
auto eth0
iface eth0 inet static
address 10.10.4.55
netmask 255.255.255.0
network 10.10.4.0
broadcast 10.10.4.255
gateway 10.10.4.1
# to LAN B
auto eth1
iface eth1 inet static
address 192.168.10.5
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255
#gateway 10.10.4.1
and here is the result of netstat -nr
- Code: Select all
gagoyiku@lewu-tatau:~$ netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.10.4.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
0.0.0.0 10.10.4.1 0.0.0.0 UG 0 0 0 eth0
I have used route add etc command to connecting my LAN, but it won't work for me.
Any advices really appreciated ...
Please ignoring my grammar..
