LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-21-2009, 05:52 PM   #1
tunilove
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 0
Thumbs up centos eth2 no dhcp ip


hi i have server my friend set all for me .... ok i have adsl line coming to zyxel router on bridge mode from this zyxel going with ethernet cable to PCI card on server called ETH2 then i have from USB network cable connected to the server ETH1 and to other router so i can have internet in my laptop with wifi ..... all this was working now for 1 year without any problem .... last week i moved to new house and i get adsl line from same provider so same equipment should works as i keep same routers .... but can not make to work ..... when i check if config i get eth1 192.168.2 100 like before and this my gateway for laptop to get internet before and ETH2 give me 192.168.1.100 witch should give the adsl ip of the ISP so any help i try all the way i find over the net i set the eth2 to statistic and give the info i get from the ISP .. no way ... i set to dhcp and ask dhclient eth2 up but here always give local ip not the public ip ... any help please ....... im in centos server

here my IF config
********************************
root@tunilove [~]# ifconfig
eth1 Link encap:Ethernet HWaddr 00:06:07:10:1B:CA
inet addr:192.168.2.100 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:243 errors:0 dropped:0 overruns:0 frame:0
TX packets:566 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:35406 (34.5 KiB) TX bytes:34600 (33.7 KiB)

eth2 Link encap:Ethernet HWaddr 00:22:2D:27:91:2A
inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8599 errors:0 dropped:0 overruns:0 frame:0
TX packets:16228 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4939770 (4.7 MiB) TX bytes:1208597 (1.1 MiB)
Interrupt:17 Base address:0xcf00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:36957 errors:0 dropped:0 overruns:0 frame:0
TX packets:36957 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4393797 (4.1 MiB) TX bytes:4393797 (4.1 MiB)

***********************************

Last edited by tunilove; 11-21-2009 at 06:16 PM.
 
Old 11-22-2009, 01:10 PM   #2
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,036

Rep: Reputation: 96
Hi and welcome to LQ.

Your post is quite hard to follow, so please can you let me know the answers to the following:
  1. Are you able to access the Internet from the CentOS Server?
  2. Are you using exactly the same router, or is it just the same type of router?

If you are able to access the Internet from the CentOS Server, but cannot access the internet from other machines (using the CentOS Server as a gateway) please can you show your routing table.

Code:
netstat -rn
 
Old 11-22-2009, 08:36 PM   #3
tunilove
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Original Poster
Rep: Reputation: 0
thank you for your reply ..

ok i made some change now i have 2 pci card eth0 dhcp and eth1 statistic here the if config

*************************
Code:
eth0      Link encap:Ethernet  HWaddr 00:22:2D:27:91:2A
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1957 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2371 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:143081 (139.7 KiB)  TX bytes:232266 (226.8 KiB)
          Interrupt:17 Base address:0x4e00

eth1      Link encap:Ethernet  HWaddr 00:A0:C5:86:B1:D6
          inet addr:192.168.2.100  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2285 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1693 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:245098 (239.3 KiB)  TX bytes:317598 (310.1 KiB)
          Interrupt:19 Base address:0xaf00

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:4008 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4008 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:373939 (365.1 KiB)  TX bytes:373939 (365.1 KiB)
**************************
here netstat -rn
Code:
root@tunilove [~]# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.2.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth1
0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 eth0
when i put the router i get from the ISP untouched config of isp i have internet in the centos but all web sites are offline ... and i when i put baCK THE BLACK ROUTER ZYXEL WITCH IS SET TO BRIDGE MODE NO INTERNET IN SERVER AND NO DHCP IP OF THE ISP

but same router connected to xp laptop i can see he give ip of the isp any help please im ready to hire any technical please contact me
 
Old 11-22-2009, 09:09 PM   #4
tunilove
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Original Poster
Rep: Reputation: 0
thank you for your reply ..

ok i made some change now i have 2 pci card eth0 dhcp and eth1 statistic here the if config

*************************
Code:
eth0      Link encap:Ethernet  HWaddr 00:22:2D:27:91:2A
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1957 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2371 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:143081 (139.7 KiB)  TX bytes:232266 (226.8 KiB)
          Interrupt:17 Base address:0x4e00

eth1      Link encap:Ethernet  HWaddr 00:A0:C5:86:B1:D6
          inet addr:192.168.2.100  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2285 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1693 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:245098 (239.3 KiB)  TX bytes:317598 (310.1 KiB)
          Interrupt:19 Base address:0xaf00

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:4008 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4008 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:373939 (365.1 KiB)  TX bytes:373939 (365.1 KiB)
**************************
here netstat -rn
Code:
root@tunilove [~]# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.2.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth1
0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 eth0
when i put the router i get from the ISP untouched config of isp i have internet in the centos but all web sites are offline ... and i when i put baCK THE BLACK ROUTER ZYXEL WITCH IS SET TO BRIDGE MODE NO INTERNET IN SERVER AND NO DHCP IP OF THE ISP

but same router connected to xp laptop i can see he give ip of the isp any help please im ready to hire any technical please contact me
 
Old 11-24-2009, 04:32 PM   #5
tunilove
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Original Poster
Rep: Reputation: 0
sortet

problem sorted and all ok thank you for all who help
 
  


Reply


Thread Tools Search this Thread
Search this 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS 5 Internet sharing and DHCP Help DavM Linux - Newbie 5 11-06-2009 09:05 PM
DHCP on CentOS 4.7 - /var/lib/dhcp/dhcpd.leases: Permission denied Latitude Linux - Networking 1 06-05-2009 03:08 AM
centos 5 configuring dhcp santosh.chini Linux - Server 3 03-06-2009 08:00 AM
DHCP on CentOs 5.2 with 2 NICs Help xtremeclones Linux - Networking 7 02-25-2009 07:06 PM
CentOS DHCP to Static mitchell2345 Linux - Networking 5 11-01-2008 11:38 AM


All times are GMT -5. The time now is 09:59 AM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration