LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Tags used in this thread
Popular LQ Tags , , , , , , , , ,

Reply
 
Thread Tools
Old 07-21-2008, 03:37 AM   #1
ricnoah
Member
 
Registered: May 2005
Location: philippines
Posts: 78
Thanked: 0
eth0 and eth1 problem


[Log in to get rid of this advertisement]
i cant't solve this problem, i have 2 NIC runnning on centos 5, eth0 is directly connected to a modem, eth1 is connected to a switch hub for LAN, but if i assigned an IP on eth1 there is conflict i could not connect to internet, how is this?

thank you
ricnoah is offline  
Tag This Post , , , , , , , , ,
Reply With Quote
Old 07-21-2008, 03:39 AM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Thanked: 126
What are the IP's of the NIC's, other machines connected to the hub and modem? Sounds to me like one of the other devices on the hub already has the IP you want
billymayday is offline     Reply With Quote
Old 07-21-2008, 03:51 AM   #3
ricnoah
Member
 
Registered: May 2005
Location: philippines
Posts: 78
Thanked: 0

Original Poster
eth0 is 210.4.102.2 w/c is the public IP. eth1 is 10.10.10.1 w/c I assigned
ricnoah is offline     Reply With Quote
Old 07-21-2008, 05:21 AM   #4
df6269
LQ Newbie
 
Registered: Jul 2008
Location: Taiwan
Distribution: openSUSE 10.3, 11.0, FreeBSD 6.3, 7.0, OpenBSD 4.1
Posts: 26
Thanked: 0
You want not only these two nic can be assigned static ip but also connect to internet by this machine. Right?
Not matter which nic you want to use, please make sure your default route and resolv.conf file.
example as below:

#vi /etc/resolv.conf
nameserver 168.95.1.1

#vi /etc/sysconfig/network

GATEWAY= 210.4.102.254

Please refer to below for more detail information
http://www.centos.org/docs/5/html/5....g-network.html
df6269 is offline     Reply With Quote
Old 07-21-2008, 06:10 AM   #5
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Thanked: 126
Quote:
Originally Posted by billymayday View Post
What are the IP's of the NIC's, other machines connected to the hub and modem? Sounds to me like one of the other devices on the hub already has the IP you want
And what about the answers to the rest of my questions?
billymayday is offline     Reply With Quote
Old 07-23-2008, 02:41 AM   #6
ricnoah
Member
 
Registered: May 2005
Location: philippines
Posts: 78
Thanked: 0

Original Poster
thanks

thanks a lot my system is running
ricnoah is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
eth0 and eth1 problem BCarey Linux - Wireless Networking 8 05-26-2007 10:23 PM
howto acess intrnet thru eth1(wireless card)in winXP via briging in linux(eth0-eth1) labhesh_popli Linux - Wireless Networking 1 09-21-2006 02:11 AM
eth0 and eth1 posture problem Sushy Linux - Networking 1 10-27-2005 06:35 PM
eth1 added, mysql connections FROM this machine are from eth1. Need bound to eth0??? kreese Linux - Networking 9 03-31-2004 01:12 PM
Kernel 2.4.22 finds eth0 and eth1 but 2.6.0 does not find eth1 coollink Linux - Networking 3 01-13-2004 08:32 PM


All times are GMT -5. The time now is 10:30 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration