+ Post New Thread
Results 1 to 5 of 5
*nix Thread, Redhat 2 NIC setup in Technical; Hi Guys, I've had a quick read around and cant see anything that would help, so I figured id ask ...
  1. #1

    Join Date
    Nov 2009
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Redhat 2 NIC setup

    Hi Guys,

    I've had a quick read around and cant see anything that would help, so I figured id ask

    I have a redhat linux box with 2 network cards:

    External [eth0]
    IPaddress: 192.168.115.10
    mask: 255.255.255.0
    Gateway: 192.168.115.1

    Internal [eth1]
    IPaddres: 192.168.0.1
    mask: 255.255.0.0
    Gateway: 192.168.0.254

    I can ping and access the machine from internal, but not externally.

    Initially I thought routing table problems: was it sending the request to the external card and trying to reply with the internal??
    Code:
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    192.168.115.0   192.168.115.1   255.255.255.0   UG    0      0        0 eth0
    192.168.115.0   *               255.255.255.0   U     0      0        0 eth0
    169.254.0.0     *               255.255.0.0     U     0      0        0 eth1
    192.168.0.0     192.168.0.254   255.255.0.0     UG    0      0        0 eth1
    192.168.0.0     *               255.255.0.0     U     0      0        0 eth1
    default         192.168.115.1   0.0.0.0         UG    0      0        0 eth0
    It doesnt appear so.

    I figured id try and trace route to its external address.

    Code:
    traceroute to 212.248.*.* (212.248.*.*), 30 hops max, 38 byte packets
     1  192.168.115.10 (192.168.115.10)  3000.754 ms !H  3000.518 ms !H  3000.391 ms !H
    Ok - so can it ping itself externally?
    Code:
    PING 212.248.*.* (212.248.*.*) 56(84) bytes of data.
    From 192.168.115.10 icmp_seq=1 Destination Host Unreachable
    Doesnt appear so.

    I get the feeling I've been working on this for that long that its a case of cant see the wood for the trees, and im missing somthing really obvious.

    If anyone has any suggestions or need me to provide more details in order to help then please just ask away.

    Any help is greatly appreciated.

    Cheers.

  2. #2
    pod
    pod is offline

    Join Date
    Feb 2009
    Location
    Belfast
    Posts
    40
    Thank Post
    21
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Some routers will not, or are not configured, to connect machines from internal to external and back again. I was tearing my hair out one day trying to do something similar to what you are only to discover that all was setup correctly but I could not connect to my webserver's external ip address from the internal network. This might not be the case, but it would be easy for you to check.

  3. #3

    Join Date
    Oct 2008
    Location
    Hedge End, Southampton
    Posts
    56
    Thank Post
    1
    Thanked 10 Times in 10 Posts
    Rep Power
    13
    Can you ping any other hosts on the 192.168.115.10/24 network, or can they ping your box?

    What are you actually trying to do with the box?

  4. #4


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    Code:
    External [eth0]
    IPaddress: 192.168.115.10
    mask: 255.255.255.0
    
    
    Internal [eth1]
    IPaddres: 192.168.0.1
    mask: 255.255.0.0
    would it cause a problem that eth0 is within the same subnet as eth1? it looks odd to me.

  5. #5

    Join Date
    Nov 2009
    Location
    Swansea
    Posts
    8
    Thank Post
    0
    Thanked 5 Times in 3 Posts
    Rep Power
    0
    Quote Originally Posted by CyberNerd View Post
    would it cause a problem that eth0 is within the same subnet as eth1? it looks odd to me.
    Network masks are conflicting. The host is going to get confused as to which interface to use to get to 192.168.115.1. If you want to test this take down the internal interface (e.g. ifconfig eth1 down), or unplug it and it will work fine and dandy.

    I'd suggest using a different internal IP range/netmask if at all possible?

SHARE:
+ Post New Thread

Similar Threads

  1. NIC Rant...
    By gshaw in forum *nix
    Replies: 13
    Last Post: 30th January 2009, 09:29 PM
  2. Sysprep +disabling the NIC
    By Dos_Box in forum Windows
    Replies: 6
    Last Post: 18th June 2008, 01:54 PM
  3. NIC Usage
    By techyphil in forum Windows
    Replies: 8
    Last Post: 23rd April 2007, 08:45 PM
  4. NIC Not recognized
    By yeoman in forum Learning Network Manager
    Replies: 3
    Last Post: 29th April 2006, 11:55 AM
  5. Replies: 2
    Last Post: 22nd February 2006, 08:51 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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