Find the answer to your Linux question:
Results 1 to 3 of 3
Hi guys, this is my scenario: I have a suse with 2 eth interface both connected : eth0 is configured with public ip Code: eth0 Link encap:Ethernet HWaddr 00:1E:0B:48:7E:D2 inet ...
  1. #1
    Just Joined!
    Join Date
    Oct 2009
    Posts
    2

    How to route 2 interface

    Hi guys,
    this is my scenario:

    I have a suse with 2 eth interface both connected :
    eth0 is configured with public ip
    Code:
    eth0      Link encap:Ethernet  HWaddr 00:1E:0B:48:7E:D2
              inet addr:87.*.*.*  Bcast:87.*.*.*  Mask:255.255.255.240
    and eth1 with internal ip
    Code:
    eth1      Link encap:Ethernet  HWaddr 00:1E:0B:48:7E:DA
              inet addr:172.16.1.9  Bcast:172.16.255.255  Mask:255.255.0.0
    my route table
    Code:
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    87.*.*.*    *               255.255.255.240 U     0      0        0 eth0
    172.16.0.0      *               255.255.0.0     U     0      0        0 eth1
    link-local      *               255.255.0.0     U     0      0        0 eth0
    loopback        *               255.0.0.0       U     0      0        0 lo
    default         87.*.*.*    0.0.0.0         UG    0      0        0 eth0
    what i need is the posibility to access the local network,
    using
    Code:
    route add -net 172.16.0.0 gw 172.16.1.3
    i can't ping any host of the lan

    anyone have a hint?

    tnx a lot
    (and sorry for my poor english)

  2. #2
    Just Joined!
    Join Date
    Sep 2009
    Location
    Taiwan
    Posts
    19
    Adding route for internal network as below:

    # route add -net 172.16.1.0 netmask 255.255.255.0 gw 172.16.1.3

  3. #3
    Just Joined!
    Join Date
    Oct 2009
    Posts
    2
    solved using
    Code:
    route add default gw 87.*.*.* eth1
    route add default gw 172.16.1.3 eth0

Posting Permissions

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