Help me configure my dual-homed setup in Linux

beer

Lifer
Jun 27, 2000
11,169
1
0
This is a sort of work related question but I don't work in IT, and asking software guys about this isn't fruitful. I need to construct a lab network that is firewalled off from corporate. However, I need one system to be able to touch both the lab network and the corporate network. This is the 'dev' box.

I have five devices on my lab network, plus my dual-homed system.
Two access points
Two PCs
one router w/ DHCP

My dev box must be able to get a lab IP address (eth1) as well as a corporate one (eth0). So I've activated two Ethernet interfaces in Linux, and I can get two address, but below describes my behavior:

* I can't resolve DNS on the corporate network
* I can't ping anything on the corporate unless I specify 'ping -eth0 ...'

How can I fix this? I need to be able to resolve DNS on corporate and be able to get to network devices and stuff.....

TIA
 

spidey07

No Lifer
Aug 4, 2000
65,469
5
76
This is routing. Just make sure IT is OK with what you are doing.

your small LAN should only be a single IP subnet and that interface should not have a default gateway.

the corporate connection should get it's default gateway information and then will get a default route. This is effectively telling your box "if it isn't on the lab lan, and it isn't on the single ip subnet of the other network cards, send it to the gateway (router)

you can verifity with "netstat -rn", that's your routing table. If you need more help, post that plus ifconfig -a.

 

beer

Lifer
Jun 27, 2000
11,169
1
0
Vic, thanks for your help. The problem ended up being that I was getting a default gateway on each interface, which was causing problems. Deleting the default gateway on my lab network colved this problem. THiank you 100%