configuring a second eth card
Posted on 2003-02-21
We run a web server application internally in my company.
We have one interface configured with an ip address of 192.168.28.61 and a default gateway of 192.168.28.9
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.28.0 * 255.255.255.0 U 40 0 0 eth0
127.0.0.0 * 255.0.0.0 U 40 0 0 lo
default 192.168.28.9 0.0.0.0 UG 40 0 0 eth0
however this IP address is restricted to only certain other LAN's in the company. We would like to add another card and IP address but connected to another LAN which all the company can access. I assume we would then create a new apache virtual server for this ip address.
The second ip address is 192.168.6.16 and the gateway router is 192.168.6.100.
I tried just adding the new ip address and bringing up the interface but then nothing was reachable. I assume this is because the routing must be changed but I'm really not sure what or how. Also what else must be considered etc.
Can anyone help?
Thanks in advance.