Re: route, default route, eth0 and eth1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2006-06-04 at 08:05 +0200, A.J. Bonnema wrote:
> Hi all,
> 
> I draw my configuration of ethernetcards:
> 
> PC (eth0 10.0.0.1)-->3com switch-->speedtouch(10.0.0.138)-->theNet
> PC (eth1 192.168.1.10)-->FSG (192.168.1.1)-->speedtouch(10.0.0.138)
> 
> Now Fedora default creates the following route:
> 
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use 
> Iface
> 10.0.0.0        *               255.255.255.0   U     0      0        0 eth0
> 192.168.1.0     *               255.255.255.0   U     0      0        0 eth1
> 169.254.0.0     *               255.255.0.0     U     0      0        0 eth1
> default         FSG.lan         0.0.0.0         UG    0      0        0 eth1
> 
> If it does, I have no internet connection. Then I have to enter the 
> following incantation to get internet connection:
> 
> route add default gw 10.0.0.138
> route del default gw 192.168.1.1 (this one is optional??)
> 
> After which the default route goes over the speedtouch in stead of the 
> FSG and I *do* have internet connection.
> However, when I restart Fedora, I have to enter these commands again.
> 
> The question is now: how do I get Fedora to remember that I want the 
> default route over 10.0.0.138 (or eth0) and not over 192.168.1.1 (or eth1)?
> 
> P.S. i read in an old book from 1995 by Matt Welsh and Lar Kaufman 
> (Running Linux) that the metric can be used to have the system choose 
> predictably (lower metric is more preferred), but I can seem to find 
> this parameter in the fedora GUI tools....
> 
> P.S. 2. The FSG is the Freecom Storage Gateway: a network device with 
> storage. Regrettably it is not a switch....
> 
> Anyone an idea how to get Fedora to set the default route correctly 
> (i.e. as I want it)?
----
gateway addresses should go into

/etc/sysconfig/network
GATEWAYDEV="eth1" #change as necessary
GATEWAY="10.0.0.138"

remove any gateway entry lines (if they exist) from
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-eth1

Craig


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux