Results 1 to 2 of 2

Thread: DHCP,IPTABLEs

  1. #1

    Exclamation DHCP,IPTABLEs

    Hi,
    I am setting up a linux box running fedora enterprise server 4 to replace my ever malfunctioning Zywall 2 router.
    the server has two NICs and i have assigned one the pulic IP and the other is set to get from DHCp however i dont know where to enable DHCp and to set the eth0 to be my gateway so that my internet link is shared in the LAN. please advise,
    Waitongu.

  2. #2
    Junior Member
    Join Date
    Sep 2006
    Posts
    70
    Quote Originally Posted by Waitongu View Post
    Hi,
    I am setting up a linux box running fedora enterprise server 4 to replace my ever malfunctioning Zywall 2 router.
    the server has two NICs and i have assigned one the pulic IP and the other is set to get from DHCp however i dont know where to enable DHCp and to set the eth0 to be my gateway so that my internet link is shared in the LAN. please advise,
    Waitongu.

    To specify DHCP server,
    # vi /etc/sysconfig/network-scripts/ifcfg-eth0
    paste the following:

    DEVICE=eth0
    BOOTPROTO=dhcp
    ONBOOT=yes

    save it and restart eth0 interface. all above should be accomplished as a root.

    set eth0 as a gateway by
    # route add default gw <gateway ip or hostname> eth0

Bookmarks

Posting Permissions

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