Welcome, Register for free! or Login below:
EduGeek.net RSS Feeds Register FAQ Members Social Groups User Map Calendar Search Today's Posts Mark Forums Read

*nix

*nix forum sponsored by
*nix Forum Sponsored by Navaho

Powering the backend of many of our networks, unbeknown to many. Linux, Solaris, Unix...

Go Back   EduGeek.net Forums > Technical > *nix
Reply
 
LinkBack Thread Tools Search Thread
Sponsored Links
Old 17-11-2009, 06:16 PM   #1
 
mogzy's Avatar
 
Join Date: Nov 2009
Posts: 1
uk
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 mogzy is an unknown quantity at this point
Default 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.
  Reply With Quote
Old 17-11-2009, 08:07 PM   #2
pod
 
pod's Avatar
 
Join Date: Feb 2009
Location: Belfast
Posts: 29
uk
Thanks: 8
Thanked 1 Time in 1 Post
Rep Power: 0 pod is an unknown quantity at this point
Default

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.
  Reply With Quote
Old 20-11-2009, 02:02 PM   #3
 
james_yale's Avatar
 
Join Date: Oct 2008
Location: Hedge End, Southampton
Posts: 44
uk
Thanks: 0
Thanked 7 Times in 7 Posts
Rep Power: 4 james_yale is on a distinguished road
Send a message via MSN to james_yale
Default

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?
  Reply With Quote
Old 20-11-2009, 02:38 PM   #4
 
CyberNerd's Avatar
 
Join Date: Jan 2006
Posts: 4,258
uk
Thanks: 119
Thanked 314 Times in 251 Posts
Rep Power: 78 CyberNerd has a brilliant future CyberNerd has a brilliant future CyberNerd has a brilliant future CyberNerd has a brilliant future CyberNerd has a brilliant future CyberNerd has a brilliant future CyberNerd has a brilliant future CyberNerd has a brilliant future CyberNerd has a brilliant future CyberNerd has a brilliant future CyberNerd has a brilliant future CyberNerd has a brilliant future
Default

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.
  Reply With Quote
Old 30-11-2009, 09:46 PM   #5
 
aggie's Avatar
 
Join Date: Nov 2009
Location: Swansea
Posts: 6
uk uk wales
Thanks: 0
Thanked 5 Times in 3 Posts
Rep Power: 0 aggie is on a distinguished road
Default

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?
  Reply With Quote
Reply

EduGeek.net Forums > Technical > *nix

Similar Threads
Thread Thread Starter Forum Replies Last Post
NIC Rant... gshaw *nix 13 30-01-2009 10:29 PM
Sysprep +disabling the NIC Dos_Box Windows 6 18-06-2008 01:54 PM
NIC Usage techyphil Windows 8 23-04-2007 08:45 PM
NIC Not recognized yeoman Learning Network Manager 3 29-04-2006 11:55 AM
RedHat Vs SuSE (or any other distro!) Gatt *nix 2 22-02-2006 09:51 AM



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search Thread
Search Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:18 PM.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Copyright EduGeek.net




website uptime

© 2005 - 2009 EduGeek.net
SERVER: 4
no new posts