default route question

From: Rudolf Ladyzhenskii (Rudolf.ladyzhenskii_at_opennw.com)
Date: 08/26/04

  • Next message: Andrew Lewis: "Re: Setting up software RAID1 post-install on RedHat9"
    Date: Thu, 26 Aug 2004 16:09:08 +1000
    To: <redhat-list@redhat.com>
    
    

    Hi, all

    I have set up a RedHat 9.0 box as a gateway/router. I have two network cards installed.

    ETH0 is conencetd to "outside world" and is using DHCP to obtain networking information.
    ETH1 is conencetd to my local network, has static IP and is a DHCP server.

    So far, so good.
    DHCP server tells the local LAN that this box is a default gateway. This is correct for local LAN. However from actual machine point of view, it default gateway is the ETH0.
    How do I set default gateway for the box? It always thinks that it is itself a default gateway. I can always run 'route' and delete default route and set up my own, but wjere do I do that? In /etc/init.d/network script? Is there a 'right' way of setting up Eth0 as default route?

    Thanks,
    Rudofl

    /*******************************************************/
    Rudolf Ladyzhenskii
    Senior Design Engineer
    Open Networks Pty. Ltd.
    Level 26, 35 Collins Street,
    Melbourne VIC 3000
    e-mail: rudolfl.ladyzhenskii@opennw.com
    phone: +61 3 9656 5107
    fax: +61 3 9656 5122
    web: www.opennw.com
    /*******************************************************/

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Andrew Lewis: "Re: Setting up software RAID1 post-install on RedHat9"

    Relevant Pages

    • RE: Problems w/ Linux firewall and Windows VPN
      ... Yeah--I'm currently in the process of adding things to the network. ... my firewall is handing out DHCP leases. ... > pptp tunnel. ... the tunnel starts going through our gateway rather than her PPTP one. ...
      (Debian-User)
    • Re: DHCP problem on workgroup
      ... >> My quick guess is that your system is unable to access the DHCP Server. ... >>> workgroup based wireless network. ... I cannot get the laptop to see the ... > default gateway shows as 0.0.0.0 (other machines all show the IP address ...
      (microsoft.public.win2000.networking)
    • Re: PS3 Kills Wireless Laptop Connection
      ... don't like being handed multiple gateways from an Windows DHCP server (the ... I set the default gateway ... to either blank or to the network printers own IP address. ... router or use a static IP address. ...
      (alt.internet.wireless)
    • [SLE] network "location" changing
      ... I have to change the network settings in one place and then change the ... gateway in another. ... needs static IP and gateway info (not DHCP) and changes frequently, ...
      (SuSE)
    • Re: Lost default gateway
      ... I have two network cards in the PC, ... The machine keeps losing the default gateway on NIC2. ... The machine is intermittently failing in it's DHCP renewals. ...
      (microsoft.public.windowsxp.network_web)