Results 1 to 3 of 3
Hi guys,
this is my scenario:
I have a suse with 2 eth interface both connected :
eth0 is configured with public ip
Code:
eth0 Link encap:Ethernet HWaddr 00:1E:0B:48:7E:D2
inet ...
- 10-13-2009 #1Just Joined!
- Join Date
- Oct 2009
- Posts
- 2
How to route 2 interface
Hi guys,
this is my scenario:
I have a suse with 2 eth interface both connected :
eth0 is configured with public ip
and eth1 with internal ipCode:eth0 Link encap:Ethernet HWaddr 00:1E:0B:48:7E:D2 inet addr:87.*.*.* Bcast:87.*.*.* Mask:255.255.255.240
my route tableCode:eth1 Link encap:Ethernet HWaddr 00:1E:0B:48:7E:DA inet addr:172.16.1.9 Bcast:172.16.255.255 Mask:255.255.0.0
what i need is the posibility to access the local network,Code:Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 87.*.*.* * 255.255.255.240 U 0 0 0 eth0 172.16.0.0 * 255.255.0.0 U 0 0 0 eth1 link-local * 255.255.0.0 U 0 0 0 eth0 loopback * 255.0.0.0 U 0 0 0 lo default 87.*.*.* 0.0.0.0 UG 0 0 0 eth0
usingi can't ping any host of the lanCode:route add -net 172.16.0.0 gw 172.16.1.3
anyone have a hint?
tnx a lot
(and sorry for my poor english)
- 10-14-2009 #2Just Joined!
- Join Date
- Sep 2009
- Location
- Taiwan
- Posts
- 19
Adding route for internal network as below:
# route add -net 172.16.1.0 netmask 255.255.255.0 gw 172.16.1.3
- 10-14-2009 #3Just Joined!
- Join Date
- Oct 2009
- Posts
- 2
solved using
Code:route add default gw 87.*.*.* eth1 route add default gw 172.16.1.3 eth0


Reply With Quote