HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Dhcp (http://www.howtoforge.com/forums/showthread.php?t=14728)

kirim 14th August 2007 07:42

Dhcp
 
new to linux, need help on DHCP
i have one machine with two Nic on, eth0 has a public ip and eth1 for DHCP
DHCP installed and able to assign IP address to PCs in my network. Pinging my default gateway on eth1 is not responding or reply ... what seems to be the problem... appreciate any ideas to try:confused:

falko 15th August 2007 18:25

What's your gateway, eth0 or eth1? What's the output of
Code:

ifconfig
? What's the ping command you used?

kirim 16th August 2007 00:44

Dhcp using Ubuntu
 
thanks my ifconfig is as follows

root@ienserver:/home/adminim# ifconfig
eth0 Link encap:Ethernet HWaddr 00:17:31:7B:35:02
inet addr:202.43.9.64 Bcast:202.43.9.255 Mask:255.255.255.0
inet6 addr: fe80::217:31ff:fe7b:3502/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:58804 errors:0 dropped:0 overruns:0 frame:6534
TX packets:3171 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7567275 (7.2 MiB) TX bytes:532504 (520.0 KiB)
Interrupt:19 Base address:0xd000

eth1 Link encap:Ethernet HWaddr 00:08:A1:A3:47:30
inet6 addr: fe80::208:a1ff:fea3:4730/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:4321 (4.2 KiB)
Interrupt:20 Base address:0xc800

eth1:avah Link encap:Ethernet HWaddr 00:08:A1:A3:47:30
inet addr:169.254.5.64 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:20 Base address:0xc800

:)

falko 16th August 2007 14:57

What about my other questions?

Your eth1 has an IPv6 address only, no IPv4 address. I think that could be the cause of your problem.

kirim 17th August 2007 08:01

using ping

eg ping 192.168.0.1

ok how will i enable ipv4 then...please advise cos i really need to get
this going...much thanks

falko 18th August 2007 11:41

Quote:

Originally Posted by kirim
using ping

eg ping 192.168.0.1

I don't see that IP address in the output of ifconfig...

Quote:

Originally Posted by kirim
ok how will i enable ipv4 then...please advise cos i really need to get
this going...much thanks

What's in /etc/network/interfaces and /etc/hosts?

kirim 18th August 2007 21:38

Dhcp
 
i am using Ubuntu 7.04 Fiesty Fawn
thanks this is my network interfaces
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
iface eth0 inet static
address 202.43.9.64
netmask 255.255.255.0
gateway 202.43.9.1

# The Local Network for Clients
iface eth1 inet dhcp

And this is my host
127.0.0.1 localhost.localdomain localhost
202.43.9.64 ienserver.matangiake.to ienserver.matangiake.to


# The following lines are desirable for IPv6 capable hosts
#::1 ip6-localhost ip6-loopback
#fe00::0 ip6-localnet
#ff00::0 ip6-mcastprefix
#ff02::1 ip6-allnodes
#ff02::2 ip6-allrouters
#ff02::3 ip6-allhosts
:confused:

falko 19th August 2007 14:46

Hm... And where does the eth1:avah device come from?

kirim 19th August 2007 20:59

Dhcp
 
the eth1:avah device is one of the features in the Network Settings..one for Static, DHCP and Local Zeroconf Network (IPv4 LL) when i selected the Local Zeroconf Network the eth1:avah device appeared as one of the output using ifconfig.... as shown in the previous thread.

I want eth1 to distribute IP to my local network but i cannot. in my network interface conf i configured eth1 with the pool of IPs but still could not work to distribute ips ... any idea.. please advise
thanks

falko 20th August 2007 18:57

Can you try to assign a static IP to eth1? What's the output of
Code:

ifconfig
then?


All times are GMT +2. The time now is 09:48.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.