--- host setup root@bl4d3b0x # ifconfig -a ~ eth0 Link encap:Ethernet HWaddr 00:E0:7D:75:5A:B3 inet addr:10.10.0.111 Bcast:10.10.255.255 Mask:255.255.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:363770 errors:0 dropped:0 overruns:0 frame:0 TX packets:390784 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:115277436 (109.9 Mb) TX bytes:51917143 (49.5 Mb) Interrupt:9 Base address:0x2000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:67806 errors:0 dropped:0 overruns:0 frame:0 TX packets:67806 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:5733850 (5.4 Mb) TX bytes:5733850 (5.4 Mb) root@bl4d3b0x # tunctl -u janus ~ Set 'tap0' persistent and owned by uid 1000 root@bl4d3b0x # ifconfig tap0 inet 10.10.0.22 netmask 255.255.255.0 broadcast 10.10.0.255 up ~ root@bl4d3b0x # ifconfig ~ eth0 Link encap:Ethernet HWaddr 00:E0:7D:75:5A:B3 inet addr:10.10.0.111 Bcast:10.10.255.255 Mask:255.255.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:363792 errors:0 dropped:0 overruns:0 frame:0 TX packets:390809 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:115281123 (109.9 Mb) TX bytes:51920157 (49.5 Mb) Interrupt:9 Base address:0x2000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:67806 errors:0 dropped:0 overruns:0 frame:0 TX packets:67806 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:5733850 (5.4 Mb) TX bytes:5733850 (5.4 Mb) tap0 Link encap:Ethernet HWaddr 00:FF:0C:FB:5D:91 inet addr:10.10.0.22 Bcast:10.10.0.255 Mask:255.255.255.0 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:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) root@bl4d3b0x # ~ --- booting uml janus@bl4d3b0x % linux ubd0=janox.fs ubd1=swap.fs eth0=tuntap,tap0 /pool/uml tracing thread pid = 1103 Checking whether the host supports skas mode...No set_umid - mkstemp failed, errno = 13 set_umid - mkstemp failed, errno = 13 Linux version 2.4.19-25um (root@bl4d3b0x.area319.lan) (gcc version 2.95.3 20010315 (release)) #6 Sun Jan 12 10:57:06 CET 2003 On node 0 totalpages: 8192 zone(0): 8192 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: ubd0=janox.fs ubd1=swap.fs eth0=tuntap,tap0 root=/dev/ubd0 Calibrating delay loop... 1012.76 BogoMIPS Memory: 28760k available Dentry cache hash table entries: 4096 (order: 3, 32768 bytes) Inode cache hash table entries: 2048 (order: 2, 16384 bytes) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes) Page-cache hash table entries: 8192 (order: 3, 32768 bytes) Checking for host processor cmov support...Yes Checking for host processor xmm support...No Checking that ptrace can change system call numbers...OK Checking that host ptys support output SIGIO...Yes Checking that host ptys support SIGIO on close...No, enabling workaround POSIX conformance testing by UNIFIX Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Starting kswapd VFS: Diskquotas version dquot_6.4.0 initialized Journalled Block Device driver loaded devfs: v1.12a (20020514) Richard Gooch (rgooch@atnf.csiro.au) devfs: boot_options: 0x0 Installing knfsd (copyright (C) 1996 okir@monad.swb.de). JFFS version 1.0, (C) 1999, 2000 Axis Communications AB JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB. pty: 256 Unix98 ptys configured SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256). RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize loop: loaded (max 8 devices) PPP generic driver version 2.4.2 Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky blkmtd: error, missing `device' name NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 2048 bind 2048) ip_conntrack (224 buckets, 1792 max) ip_tables: (C) 2000-2002 Netfilter core team arp_tables: (C) 2002 David S. Miller NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. Initializing software serial port version 1 set_umid - mkstemp failed, errno = 13 Partition check: ubda: unknown partition table ubdb: unknown partition table UML Audio Relay Initializing stdio console driver Netdevice 0 : TUN/TAP backend - kjournald starting. Commit interval 5 seconds EXT3-fs: mounted filesystem with ordered data mode. VFS: Mounted root (ext3 filesystem) readonly. INIT: version 2.84 booting Gentoo Linux; http://www.gentoo.org Copyright 2001-2002 Gentoo Technologies, Inc.; Distributed under the GPL * Mounting /proc... [ ok ] * Mounting devfs at /dev... [ ok ] * Starting devfsd... [ ok ] * Mounting tmpfs at /mnt/.init.d... [ ok ] * Caching service dependencies... [ ok ] * Activating swap... [ ok ] * Remounting root filesystem read-only (if necessary)... [ ok ] * Checking root filesystem... fsck 1.29 (24-Sep-2002) /dev/ubd/0: clean, 56928/128520 files, 387355/513024 blocks [ ok ] * Remounting root filesystem read/write... [ ok ] * Setting hostname to tyler.a319.lan... [ ok ] * Calculating module dependencies... [ ok ] * Checking all filesystems... fsck 1.29 (24-Sep-2002) [ ok ] * Mounting local filesystems... [ ok ] * Activating (possibly) more swap... [ ok ] * Setting system clock to hardware clock [Local Time]... * Failed to set system clock to hardware clock [ !! ] * ERROR: Problem starting needed services. * "bootmisc" was not started. * You need to setup $CONSOLEFONT in /etc/rc.conf first. * You need to setup $KEYMAP in /etc/rc.conf first * Bringing lo up... [ ok ] * Initializing random number generator... [ ok ] INIT: Entering runlevel: 3 * Mounting network filesystems... [ ok ] * Starting local... [ ok ] login(pam_unix)[1676]: session opened for user root by (uid=0) --- login / network tyler.a319.lan login: root Password: Last login: Tue Jan 14 21:29:28 on 2 tyler root # ifconfig eth0 inet 10.10.0.33 netmask 255.255.255.0 broadcast 10.10.0.255 up SIOCSIFFLAGS: Permission denied SIOCSIFFLAGS: Permission denied tyler root # ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 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) tyler root # ifconfig -a dummy0 Link encap:Ethernet HWaddr 00:00:00:00:00:00 BROADCAST NOARP MTU:1500 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) eth0 Link encap:Ethernet HWaddr FE:FD:0A:0A:00:21 inet addr:10.10.0.33 Bcast:10.10.0.255 Mask:255.255.255.0 BROADCAST MULTICAST MTU:1500 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:100 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:5 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 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) tyler root #