How to add a route table for eth1 and make it the default
I currently have two network cards, eth0 is for my private network for my thin clients and my wireless pci card is set up as eth1 in which i want this to be the gateway for my internet acccess. currnetly my route table looks like this below.
root@bangde ~]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0 default 192.168.1.4 0.0.0.0 UG 0 0 0 eth0 [root@bangde ~]# as you see there is no gate way for eth1 it does not eeven show up, but it is confugured properly as i can see all the details in wifi tools area about it. I would like to know how to add a route entry for eth1 and make that the default route. Thank you. |
You need to drop the existing default route:
Code:
/sbin/route del default gw 192.168.1.4 Code:
/sbin/route add -net gateway netmask 255.255.255.0 dev eth1 |
Please explain in detail
I am currently using fedora 3
the information below code:/sbin/route del default gw 192.168. /sbin/route add -net gateway netmask 255.255.255.0 dev eth1 /sbin/route add default gw gateway where do i edit this information, i am a newby at linux is there a config file for me to edit this or do i run a command in the termainl window. I am lost at what to do with your instructions. Your detail help would be greatly welcomed. Thank you. |
where is the routing-table saved? in which file?
i tried to find it using "find /etc -type f | xargs grep Destination" but no file returned?! sorry i have it now! it's in /etc/rc.d/rc.inet1 |
All times are GMT -5. The time now is 06:12 AM. |