I'm have to set up a Redhat 6.2 machine to connect to the internet
through a T1 line. This machine will be a firewall/router, so it has two
network cards. The eth0 interface is the external (i.e. Internet)
interface. I have been allocated a range of IP address to use. I was
told that I could use 22.214.171.124 - 126.96.36.199 with a netmask of
255.255.255.248 as my IP address range. The address 188.8.131.52
should be the T1 router (i.e. default gateway).
My question is, what should be my ifconfig and route statements if I
want to use 184.108.40.206 as the external ip address of my firewall
I've actually got it to work when I did the following:
ifconfig eth0 220.127.116.11 netmask 255.255.255.0 broadcast
route add -net 18.104.22.168 netmask 255.255.255.0 eth0
route add default gw 22.214.171.124 eth0
But when I did this, my routing table didn't seem to be correct. I
always thought it should have an entry that looked like:
DEST GATEWAY NETMASK IFACE
126.96.36.199 0.0.0.0 255.255.255.248 eth0
but it didn't. Am I mistaken on this?
Thanks for any advice you can give me.