Results 1 to 8 of 8

Thread: Opensuse 11 can't connet to internet through centos firewall

  1. #1
    metu NNTP User

    Default Opensuse 11 can't connet to internet through centos firewall

    Hello

    Just installed opensuse 11 and noticed network connection does not work, on the same machine i can boot to windows and network does work with it.
    Machine does have 2 network cards one to connect samba server wich is not my firewall machine it's just another computer and it does have static ip and that samba connection works, another network card that does connect to internet wich is the one that doesen't work.
    Ifconfig eth1 shows that it does have lan ip and netmask wich seem to right 192.168.1.30/255.255.255.0

    I connect to internet through centos 5.2 firewall machine like this: dsl modem -> centos box -> opensuse/windows machine.
    Centos machine does have dhcp server running and connection is made through iptables configuration.
    I can't ping or make ssh connection to this centos firewall computer with opensuse.

    So far i have tryed to google the prob, various network settings like static ip and service network restart gives all green done messages so no errors there.

  2. #2
    Join Date
    Jun 2008
    Location
    The Netherlands
    Posts
    1,273

    Default Re: Opensuse 11 can't connet to internet through centos fire

    1ste thing would be to check if dns and route table are in order (seeing you are getting a correct ip address)

    If you will, post the output of
    /sbin/route -n
    cat /etc/resolv.conf

    also any drops or errors listed in the ifconfig output?

    Cheers,
    Wj
    Have a lot of fun!

  3. #3
    metu NNTP User

    Default Re: Opensuse 11 can't connet to internet through centos fire

    sbin/route -n

    Code:
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
    192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
    169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
    127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
    cat /etc/resolv.conf

    Code:
    ### BEGIN INFO
    #
    # Modified_by:  dhcpcd
    # Backup:       /etc/resolv.conf.saved.by.dhcpcd.eth1
    # Process:      dhcpcd
    # Process_id:   2686
    # Script:       /sbin/modify_resolvconf
    # Saveto:
    # Info:         This is a temporary resolv.conf created by service dhcpcd.
    #               The previous file has been saved and will be restored later.
    #
    #               If you don't like your resolv.conf to be changed, you
    #               can set MODIFY_{RESOLV,NAMED}_CONF_DYNAMICALLY=no. This
    #               variables are placed in /etc/sysconfig/network/config.
    #
    #               You can also configure service dhcpcd not to modify it.
    #
    #               If you don't like dhcpcd to change your nameserver
    #               settings
    #               then either set DHCLIENT_MODIFY_RESOLV_CONF=no
    #               in /etc/sysconfig/network/dhcp, or
    #               set MODIFY_RESOLV_CONF_DYNAMICALLY=no in
    #               /etc/sysconfig/network/config or (manually) use dhcpcd
    #               with -R.  If you only want to keep your searchlist, set
    #               DHCLIENT_KEEP_SEARCHLIST=yes in /etc/sysconfig/network/dhcp or
    #               (manually) use the -K option.
    #
    ### END INFO
    domain site
    
    nameserver 217.112.252.215
    nameserver 82.118.211.204
    ifconfig eth1

    Code:
    eth1      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
              inet addr:192.168.1.30  Bcast:192.168.1.255  Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:5 errors:0 dropped:0 overruns:0 frame:0
              TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:866 (866.0 b)  TX bytes:4753 (4.6 Kb)
              Interrupt:22 Base address:0x4000

  4. #4
    Join Date
    Jun 2008
    Location
    Taiwan
    Posts
    150

    Default Re: Opensuse 11 can't connet to internet through centos fire

    #route add -net 0.0.0.0 netmask 0.0.0.0 gw centos 5.2 lan ip address
    Regards,
    Bryan Yu
    http://lifestory.moqin.com/

  5. #5
    Join Date
    Jun 2008
    Location
    The Netherlands
    Posts
    1,273

    Default Re: Opensuse 11 can't connet to internet through centos fire

    Quote Originally Posted by df6269 View Post
    #route add -net 0.0.0.0 netmask 0.0.0.0 gw centos 5.2 lan ip address
    yep, seems the default route is missing.
    I've seen this happen sometimes when switching from DHCP to static ip back to DHCP. Clearing out the nic configuration and reconfiguring usually sorts this..
    Have a lot of fun!

  6. #6
    metu NNTP User

    Default Re: Opensuse 11 can't connet to internet through centos fire

    Ok now i get this.

    su -
    route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.1.x
    SIOCADDRT: No such process

  7. #7
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,683
    Blog Entries
    4

    Default Re: Opensuse 11 can't connet to internet through centos fire

    There's a special syntax for the default gateway:

    Code:
    route add default gw x.x.x.x
    This is in route's man page.

  8. #8
    metu NNTP User

    Default Re: Opensuse 11 can't connet to internet through centos fire

    Thank you folks now i know it's something with route.

Posting Permissions

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