Skip to contentSkip to conversation

almost got routing working, but as I sad "Almost", i need some help

LARTC Krepper Guillermo 1 participant 1 message Apr 24, 2001

lore
Share & tools
lore
#0 lore raw

Hi

Here is the architecture:

I have 2 Internet connections

router 1 -- eth0 | | eth1

		| Linux	|
		| Router	|
router 2 -- eth2 	|	| eth3 --- PC (66.60.1.3)

Internet Connection:

	router 1 = 200.63.1.1	eth0 = 200.63.1.2
	router 2 = 66.60.1.1	eth2 = 66.60.1.2

Lan Connection

	eth1 (NAT) = 	192.168.200.0/24
			192.168.201.0/24
			192.168.202.0/24

	eth3 (IP Aliasing) = 	200.63.1.3, 200.63.1.4, 200.63.1.5
				66.60.1.3, 66.60.1.4, 66.60.1.5

$ip rule

0:      from all lookup local
32762:  from 66.60.1.3 lookup 101
32763:  from all to 66.60.1.3 lookup 100
32764:  from 192.168.200.0/24 lookup 200
32765:  from 192.168.100.0/24 lookup 300
32766:  from all lookup main
32767:  from all lookup 253
$ ip route
255.255.255.255 dev eth1  scope link					(for DHCP)
200.63.1.0/24 dev eth0  proto kernel  scope link  src 200.63.1.2
192.168.200.0/24 dev eth1  proto kernel  scope link  src 192.168.200.254
192.168.201.0/24 dev eth1  proto kernel  scope link  src 192.168.201.254
192.168.202.0/24 dev eth1  proto kernel  scope link  src 192.168.202.254
66.60.1.0/24 dev eth2  proto kernel  scope link  src 66.60.1.2
127.0.0.0/8 dev lo  scope link
default via 66.60.1.1 dev eth2				(66.60.1.1 = router 2)
$ ip route list table 300
192.168.200.0/24 via 192.168.200.254 dev eth1
192.168.201.0/24 via 192.168.201.254 dev eth1
192.168.202.0/24 via 192.168.202.254 dev eth1
default via 200.63.1.1 dev eth0                 		(200.63.1.1 = router
$ ip route list table 200
192.168.200.0/24 via 192.168.200.254 dev eth1
192.168.202.0/24 via 192.168.202.254 dev eth1
default via 66.60.1.1 dev eth2
$ ip route list table 100
66.60.1.3 via 66.60.1.2 dev eth3

So far so good, but when I want to access the Internet with 66.60.1.3 (on
eth3) I can't.
But what I can do is ping any other machine on (192.168.200.0/24, 192.168.201.0/24, 192.168.202.0/24) from 66.60.1.3.

So I did a rule from 66.60.1.3 like this and didn't work

# ip route list table 101
200.63.1.1 via 200.63.1.2 dev eth0
66.60.1.1 via 66.60.1.2 dev eth2
default via 66.60.33.1 dev eth2 

If you need any additional informational please tell me and I will send them

OK so I almost got it but need to solve this problem any ideas? or is there another way of doing this?

Thanks Krepper Guillermo

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/