Find the answer to your Linux question:
Results 1 to 2 of 2
so I'm trying to move away from using /etc/rc.local for adding routes I've added IPADDRESS0=xxx.xxx.xxx.xxx NETMASK0=xxx.xxx.xxx.xxx GATEWAY0=xxx.xxx.xxx.xxx to /etc/sysconfig/network/network-scripts/route-eth0 after doing 'service network restart' I'm do see the new route ...
  1. #1
    Just Joined!
    Join Date
    Oct 2007
    Posts
    9

    Question route-eth....how to add default route??

    so I'm trying to move away from using /etc/rc.local for adding routes
    I've added
    IPADDRESS0=xxx.xxx.xxx.xxx
    NETMASK0=xxx.xxx.xxx.xxx
    GATEWAY0=xxx.xxx.xxx.xxx
    to /etc/sysconfig/network/network-scripts/route-eth0

    after doing 'service network restart' I'm do see the
    new route as described by directive above. However, I still do
    not see the default gateway that's supposed to be on my box.
    Where/how do I define the default gateway using the route-ethX
    method above?

    thanks

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    Your default gw should be set in /etc/sysconfig/network.
    Google is your friend.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...