[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[uml-user] network setup
Hi, I visited your website http://uml.nagafix.co.uk/ about UML, it's
excellent. Everything worked perfectly until the network setup part. UML
just couldn't seem to pick up an IP for eth0. I followed exactly the
same commands you put on your website. I am using Fedora core 5 Linux
release. Here is some relevant information about my host:
dhcpd -cf /etc/dhcpd.conf tap1
Internet Systems Consortium DHCP Server V3.0.3-RedHat
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Wrote 0 leases to leases file.
Listening on LPF/tap1/92:06:b0:ab:dc:62/192.168.0/24
Sending on LPF/tap1/92:06:b0:ab:dc:62/192.168.0/24
Sending on Socket/fallback/fallback-net
[root@maple uml]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:17:A4:F1:AF:C1
inet addr:192.168.1.31 Bcast:255.255.255.255 Mask:255.248.0.0
inet6 addr: fe80::217:a4ff:fef1:afc1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16870456 errors:0 dropped:0 overruns:0 frame:24
TX packets:7379967 errors:0 dropped:0 overruns:0 carrier:0
collisions:1085459 txqueuelen:1000
RX bytes:1923957762 (1.7 GiB) TX bytes:607936674 (579.7 MiB)
Interrupt:16
[root@maple uml]# ifconfig tap1
tap1 Link encap:Ethernet HWaddr 92:06:B0:AB:DC:62
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::9006:b0ff:feab:dc62/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:8 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
I've also enabled ipv4_forward and arp_forward:
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/conf/tap1/proxy_arp
I made a small change to dhcpd.conf (I suppose you have a typo in your
example):
default-lease-time 6000;
max-lease-time 72000;
option domain-name-servers 192.168.0.1;
ddns-update-style none;
subnet 192.168.0.0 netmask 255.255.255.0{
range 192.168.0.100 192.168.0.254;
}
Note it's subnet 192.168.0.0 not 192.168.0.1 (dhcpd will complain/stop
when it's 192.168.0.1)
This is the error message I get: (I am also using fedora core 5 root
file system in client uml linux)
|./kernel32-2.6 ubd0=./root_fs eth0=tuntap,tap1,fe:f0:00:00:00:01,192.168.1.254 con0=fd:0,fd:1 root=/dev/ubda|
.....
[42949373.320000] Netdevice 0 (fe:f0:00:00:00:01) : TUN/TAP backend - IP
= 192.168.1.254
.....
Determining IP information for eth0...SIOCSIFFLAGS: Operation not permitted
SIOCSIFFLAGS: Operation not permitted
#ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
[root@localhost ~]# ifup eth0
Determining IP information for eth0...[42949541.280000] TUNSETIFF
failed, errno = 1
[42949542.320000] TUNSETIFF failed, errno = 1
SIOCSIFFLAGS: Operation not permitted
[42949542.320000] TUNSETIFF failed, errno = 1
SIOCSIFFLAGS: Operation not permitted
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
This mailing list archive is a service of Copilotco.