From: Dirk Heilemann (dirk.heilemann@telindus.de)
Date: Thu Apr 11 2002 - 11:34:45 CEST
Hi,
I used DHCP while doing the first tests. Now my admin gave me a static IP -
no big deal you say.... but it's not working!
With DHCP:
/root [root]# ifconfig eth0
eth0 Link encap:10Mbps Ethernet HWaddr 00:60:97:16:FA:9E
inet addr:10.16.196.169 Bcast:10.16.197.255 Mask:255.255.254.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:196809 errors:0 dropped:0 overruns:0
TX packets:2046 errors:0 dropped:0 overruns:0
Interrupt:10 Base address:0x300
/root [root]# ping -c 3 10.16.196.169 ( my address )
PING 10.16.196.169 (10.16.196.169): 56 data bytes
64 bytes from 10.16.196.169: icmp_seq=0 ttl=64 time=1.2 ms
64 bytes from 10.16.196.169: icmp_seq=1 ttl=64 time=1.0 ms
64 bytes from 10.16.196.169: icmp_seq=2 ttl=64 time=1.0 ms
--- 10.16.196.169 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 1.0/1.0/1.2 ms
Fine fine. Now I change to the static IP. I configure eth0 and network
/root [root]# setup -f eth0
... snip
/root [root]# setup -f network
... Ooops. I see errors when adding the default GW. Network unreachable.
/root [root]# ifconfig eth0
eth0 Link encap:10Mbps Ethernet HWaddr 00:60:97:16:FA:9E
inet addr:10.16.196.39 Bcast:10.16.255.255 Mask:255.255.254.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:424 errors:0 dropped:0 overruns:0
TX packets:0 errors:0 dropped:0 overruns:0
Interrupt:10 Base address:0x300
You see two things here:
- I receive packets! I even see them with tcpdump.
- The broadcast address is wrong. 10.16.196.39/23 => 10.16.197.255
/root [root]# ping -c 3 10.16.196.169
--- 10.16.196.39 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
PING 10.16.196.39 (10.16.196.39): 56 data bytes
ping: sendto: Network is unreachable
ping: wrote 10.16.196.39 64 chars, ret=-1
ping: sendto: Network is unreachable
ping: wrote 10.16.196.39 64 chars, ret=-1
ping: sendto: Network is unreachable
ping: wrote 10.16.196.39 64 chars, ret=-1
--- 10.16.196.39 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
So - my own interface ist not reachable - I never heard that.
Changing the broadcast address with ifconfig did not solve the problem. Same
with rebooting and shutting down things.
Solutions or workarounds anyone?
Greetings,
Dirk
---------------------------------------------------------------------
To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.dk
For additional commands, e-mail: mulinux-help@sunsite.dk
This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:21 CET