Ip config problem

Discussion in 'General' started by Satya, Feb 23, 2009.

  1. Satya

    Satya New Member

    Hi

    I have installed Ubuntu 8.10 LTS ver. want to set as router.
    I am having static ip on eth0 and private ip on eth1

    /etc/networks/interfaces

    #primary interface
    autho eth0
    address
    subnet
    xxx
    xxx
    xx


    # secondary interface
    address 192.168.0.2
    subnet 255.255.255.0
    network 192.168.0.0
    broadcast x.x.x.

    saved
    /etc/sysctl.conf
    forwarding set as 1
    when i restart networking service i am getting error
    sudo /etc/init.d/networking restart
    * Reconfiguring network interfaces... postconf: fatal: open /etc/postfix/main.cf: No such file or directory
    SIOCADDRT: File exists
    Failed to bring up eth0.
    * if-up.d/mountnfs[eth1]: waiting for interface eth0 before doing NFS mounts
    postconf: fatal: open /etc/postfix/main.cf: No such file or directory
    [ OK ]

    can't distribute internet......!
    can anybody guide me.........!
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Was networking working before? What exactly did you change?
     
  3. Satya

    Satya New Member

    I am setting this server first time.

    I have change file


    vi /etc/network/interfaces

    in this file i have set eth0 with static ip supplied by ISP with DNS.

    for second interface eth1
    i have assign private ip
    address 192.168.0.2
    subnet 255.255.255.0
    network 192.168.0.0
    broadcast 192.168.0.255

    than i have saved and restart networking service.

    than i have change
    /etc/sysctl.conf
    ip4_....... = 1

    for working as Router.

    again restarted service.

    Now on client pc i have set ip address and gw as 192.168.0.2
    i am not able to access internet.
    on server i can ping google.com or anyother site.
    Please help me if u can to set as gateway server.
     
  4. Satya

    Satya New Member

    I am setting Ubuntu 8.10LTs server first time, but i can access internet on server. I want to set server as a router.
     
  5. Tomas

    Tomas New Member

Share This Page