demo3a has some consmetic problems, but some fairly interesting functionality.
The nicest thing about demo3a is that that udpkg and cdebconf are working well
enough that other udebs can be installed and debugged/tested.
My machine has two cards, one on a cable modem, one on a 192.168 net. I first
configure the static network and ping a host on it. I then configure the dhcp
side, and ping www.debian.org.
Known Problems:
-proc filesystem isn't working, so I can't find the network interfaces
automatically.
-netkit-tiny's ifconfig didn't work for me, so I pulled in the standard one.
-some of the output from netcfg is messed up, easy to fix, just messed up
Note: debconf and udpkg in this demo include the patches I sent in my
previous post.
http://www.gordian.com/users/davidw/debian/demo3a.tar.gz
-David
$ tar -xzf ../demo3a.tgz
$ cd demo3a/
$ sudo chroot . /bin/sh
Password:
# ifconfig
Warning: cannot open /proc/net/dev (No such file or directory). Limited output.
# dpkg-reconfigure netcfg-static
Network Configuration
======================
please enter a network interface.
No network interfaces were found.
[eth0]>
Network Configuration
======================
What is the IP address of this system?
The ipaddress identifies you system to other computer on the network. If you
don't know your ipaddress you should ask your system administrator.
[192.168.0.1]>
Network Configuration
======================
[ruff]>
Network Configuration
======================
Choose the domain name.
As with individual systems, every network has a name. This name is called the
domain name. Please enter your domain name or leave this field empty if you
don't have a domain.
[snuggles.com]>
Network Configuration
======================
Choose the DNS Server Addresses
Please enter the IP addresses (not host names) of up to 3 name servers,
separated by spaces. Do not use commas. The servers will be queried in the
order in which you enter them. If you don't want to use any name servers just
leave this field blank.
[24.20.31.210]>
Network Configuration
======================
What is your netmask?
The netmask is used to determine what ipaddresses are valid on this network.
This allows your computer to determine whether or not it needs to send packets
destined for a particular ipaddress to a gateway.
[255.255.255.0]>
Network Configuration
======================
What is your IP gateway address?
A gateway system is one that connects your network to other networks such as
your company wide-area net or the Internet. If there is no gateway in your
subnet just leave this field blank.
[192.168.0.16]>
Network Configuration
======================
Is this configuration correct?
interface =
hostname = <none>
domain = snuggles.com
ipaddress = 192.168.0.1
netmask = 255.255.255.0
network = 192.168.0.0
broadcast = 192.168.0.255
gateway = 192.168.0.16
primary DNS = 24.20.31.210
secondary DNS = <none>
tertiary DNS = <none>
[yes] / no>
executing '/sbin/ifconfig lo 127.0.0.1'
rv = 0
executing '/sbin/ifconfig eth0 192.168.0.1 netmask 255.255.255.0 broadcast
192.168.0.255'
rv = 0
# ping 192.168.0.16
PING 192.168.0.16 (192.168.0.16): 56 data bytes
64 bytes from 192.168.0.16: icmp_seq=0 ttl=255 time=0.8 ms
64 bytes from 192.168.0.16: icmp_seq=1 ttl=255 time=0.4 ms
--- 192.168.0.16 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0.4/0.6/0.8 ms
# ifconfig
Warning: cannot open /proc/net/dev (No such file or directory). Limited output.
eth0 Link encap:Ethernet HWaddr 00:D0:B7:80:CA:34
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MTU:1500 Metric:1
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924
# dpkg-reconfigure netcfg-dhcp
Network Configuration
======================
[ruff]>
Network Configuration
======================
Choose the domain name.
As with individual systems, every network has a name. This name is called the
domain name. Please enter your domain name or leave this field empty if you
don't have a domain.
[snuggles.com]>
Network Configuration
======================
Choose the DNS Server Addresses
Please enter the IP addresses (not host names) of up to 3 name servers,
separated by spaces. Do not use commas. The servers will be queried in the
order in which you enter them. If you don't want to use any name servers just
leave this field blank.
[24.20.31.210]>
Network Configuration
======================
please enter a network interface.
No network interfaces were found.
[eth0]> eth1
Network Configuration
======================
What is your dhcp hostname?
In some situations, you may need to supply a DHCP host name. These situations
are rare. Most commonly, it applies to cable modem users. If you are a cable
modem user, you might often need to specify an account number here. Otherwise,
you can just leave this blank.
[C543922-a]>
executing '/sbin/ifconfig lo 127.0.0.1'
rv = 0
executing '/sbin/dhcpcd-2.2.x -h C543922-a eth1'
rv = 0
# ifconfig
Warning: cannot open /proc/net/dev (No such file or directory). Limited output.
eth0 Link encap:Ethernet HWaddr 00:D0:B7:80:CA:34
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MTU:1500 Metric:1
eth1 Link encap:Ethernet HWaddr 00:D0:B7:80:9C:E3
inet addr:65.3.216.80 Bcast:65.3.216.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
# ping www.debian.org
PING www.debian.org (198.186.203.20): 56 data bytes
64 bytes from 198.186.203.20: icmp_seq=0 ttl=246 time=19.8 ms
64 bytes from 198.186.203.20: icmp_seq=1 ttl=246 time=47.1 ms
64 bytes from 198.186.203.20: icmp_seq=2 ttl=246 time=36.8 ms
--- www.debian.org ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 19.8/34.5/47.1 ms
#
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]