[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#406114: Installer netinst needs ping and better ifconfig



Op 08-01-2007 om 21:26 schreef Claus Fischer:
> 
> Note: I have also filed a bug with busybox, as the
> ifconfig feature is probably missing from busybox' ifconfig.

That is http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=406108

> Also, a ping command to make sure the connection is established
> is highly desirable.

The tool wget is available, it can be abused as "ping".

Have a look at this <screenshot>
bahrain:~
# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:03:93:45:92:B8
          inet addr:172.24.0.25  Bcast:172.24.0.63  Mask:255.255.255.192
          inet6 addr: fe80::203:93ff:fe45:92b8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7432 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8832 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2261327 (2.1 MiB)  TX bytes:804074 (785.2 KiB)
          Interrupt:41 Base address:0x800

bahrain:~
# wget http://172.24.0.25/index.html
--23:10:35--  http://172.24.0.25/index.html
           => `index.html'
Connecting to 172.24.0.25:80... failed: Connection refused.
bahrain:~
# ifdown eth0
There is already a pid file /var/run/dhclient.eth0.pid with pid 2495
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:03:93:45:92:b8
Sending on   LPF/eth0/00:03:93:45:92:b8
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 172.24.0.39 port 67
bahrain:~
# wget http://172.24.0.25/index.html
--23:10:54--  http://172.24.0.25/index.html
           => `index.html'
Connecting to 172.24.0.25:80... failed: Network is unreachable.
bahrain:~
# ifup eth0
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:03:93:45:92:b8
Sending on   LPF/eth0/00:03:93:45:92:b8
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
ip length 328 disagrees with bytes received 332.
accepting packet with data after udp payload.
DHCPOFFER from 172.24.0.39
DHCPREQUEST on eth0 to 255.255.255.255 port 67
ip length 328 disagrees with bytes received 332.
accepting packet with data after udp payload.
DHCPACK from 172.24.0.39
bound to 172.24.0.25 -- renewal in 27078 seconds.
bahrain:~
# wget http://172.24.0.25/index.html
--23:11:36--  http://172.24.0.25/index.html
           => `index.html'
Connecting to 172.24.0.25:80... failed: Connection refused.
bahrain:~
# wget http://172.24.0.39/index.html
--23:11:42--  http://172.24.0.39/index.html
           => `index.html'
Connecting to 172.24.0.39:80... failed: Connection refused.
bahrain:~
# wget http://172.24.0.42/index.html
--23:12:10--  http://172.24.0.42/index.html
           => `index.html'
Connecting to 172.24.0.42:80... failed: No route to host.
bahrain:~
#
</screenshot> 


HtH
GSt



Reply to: