From: Frederic B. <Fre...@wa...> - 2003-08-11 14:15:34
|
Hi all, Im new to uml (networking as well). I experience difficulties pinging the host, and testing many different commands from the doc, Ive been unable to make it work. Pinging the host from uml doesnt work, neither pinging the uml from host. So that Im wondering if my host/uml's kernel is missing some networking options... Thanks for your help Some infos you may need : ->The facts Host$ ping 192.168.1.25 PING 192.168.1.25 (192.168.1.25) 56(84) bytes of data. From 192.168.1.2 icmp_seq=1 Destination Host Unreachable From 192.168.1.2 icmp_seq=2 Destination Host Unreachable .. [eth0 from uml receiving : RX bytes:18512 (18.0 KiB) and transmitting TX bytes:18512 (18.0 KiB)] Uml$ ping 192.168.1.2 PING 192.168.1.2 (192.168.1.2): 56 data bytes -nothing- [tap0 receiving : RX bytes:4508 (4.4 Kb) but not transmitting ] ->Ips Host's gateway=192.168.1.1 Host=192.168.1.2 Uml =192.168.1.25 ->Kernel's versions Host: Linux blackbox 2.6.0-test2-mm5 #1 SMP Sun Aug 10 00:45:47 CEST 2003 i686 AMD Athlon(tm) MP 2200+ AuthenticAMD GNU/Linux Uml: Linux (none) 2.6.0-test2-1um #8 Sun Aug 10 23:00:39 CEST 2003 i686 unknown ->Host's kernel networking options: -- # Networking support # CONFIG_NET=y # # Networking options # CONFIG_PACKET=y CONFIG_PACKET_MMAP=y CONFIG_NETLINK_DEV=m CONFIG_UNIX=y CONFIG_NET_KEY=m CONFIG_INET=y CONFIG_IP_MULTICAST=y CONFIG_IP_ADVANCED_ROUTER=y # CONFIG_IP_MULTIPLE_TABLES is not set # CONFIG_IP_ROUTE_MULTIPATH is not set # CONFIG_IP_ROUTE_TOS is not set CONFIG_IP_ROUTE_VERBOSE=y # CONFIG_IP_PNP is not set CONFIG_NET_IPIP=m # CONFIG_NET_IPGRE is not set # CONFIG_IP_MROUTE is not set # CONFIG_ARPD is not set CONFIG_INET_ECN=y CONFIG_SYN_COOKIES=y # CONFIG_INET_AH is not set # CONFIG_INET_ESP is not set # CONFIG_INET_IPCOMP is not set # # ARCnet devices # # CONFIG_ARCNET is not set CONFIG_DUMMY=m # CONFIG_BONDING is not set # CONFIG_EQUALIZER is not set CONFIG_TUN=m CONFIG_ETHERTAP=m # CONFIG_NET_SB1000 is not set -- ->Uml's kernel networking options: -- # # Networking options # CONFIG_PACKET=y CONFIG_PACKET_MMAP=y CONFIG_NETLINK_DEV=y # CONFIG_NETFILTER is not set CONFIG_UNIX=y # CONFIG_NET_KEY is not set CONFIG_INET=y # CONFIG_IP_MULTICAST is not set # CONFIG_IP_ADVANCED_ROUTER is not set # CONFIG_IP_PNP is not set # CONFIG_NET_IPIP is not set # CONFIG_NET_IPGRE is not set # CONFIG_ARPD is not set # CONFIG_INET_ECN is not set # CONFIG_SYN_COOKIES is not set # CONFIG_INET_AH is not set # CONFIG_INET_ESP is not set # CONFIG_INET_IPCOMP is not set # CONFIG_IPV6 is not set # CONFIG_XFRM_USER is not set -- ->Misc host# ls -l /dev/net/tun crw-rw-rw- 1 root users 10, 200 Aug 11 13:12 /dev/net/tun ->Boot : unpriviledged user runs : /linux ubd0=Debian-3.0r0.ext2 ubd1=swap_fs root=/dev/ubd/0 eth0=tuntap,,,192.168.1.2 ..blabla... Setting up IP spoofing protection: rp_filter. Configuring network interfaces: * insmod tun Can't open 'tun': No such file or directory * ifconfig tap0 192.168.1.2 netmask 255.255.255.255 up * bash -c echo 1 > /proc/sys/net/ipv4/ip_forward * route add -host 192.168.1.25 dev tap0 * bash -c echo 1 > /proc/sys/net/ipv4/conf/tap0/proxy_arp * arp -Ds 192.168.1.25 eth0 pub done. Host$ lsmod |grep tun tun 8064 1 ->Interfaces: Uml$ cat /etc/network/interfaces # Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or # /usr/share/doc/ifupdown/examples for more information. auto lo eth0 iface lo inet loopback iface eth0 inet static address 192.168.1.25 network 192.168.1.0 netmask 255.255.255.0 broadcast 192.168.1.255 gateway 192.168.1.2 Uml$ ifconfig eth0 Link encap:Ethernet HWaddr FE:FD:C0:A8:01:19 inet addr:192.168.1.25 Bcast:192.168.1.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:36 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:0 (0.0 b) TX bytes:1008 (1008.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:12 errors:0 dropped:0 overruns:0 frame:0 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:960 (960.0 b) TX bytes:960 (960.0 b) Host$ ifconfig eth0 Link encap:Ethernet HWaddr 00:50:DA:3C:26:77 inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1 RX packets:12853 errors:0 dropped:0 overruns:0 frame:0 TX packets:12316 errors:0 dropped:0 overruns:0 carrier:0 collisions:12 txqueuelen:100 RX bytes:7526841 (7.1 Mb) TX bytes:1238261 (1.1 Mb) Interrupt:11 Base address:0xd000 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:15 errors:0 dropped:0 overruns:0 frame:0 TX packets:15 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1402 (1.3 Kb) TX bytes:1402 (1.3 Kb) tap0 Link encap:Ethernet HWaddr 00:FF:3C:7B:ED:20 inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.255 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:36 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:1008 (1008.0 b) TX bytes:0 (0.0 b) ->Routing Host$ netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.1.25 0.0.0.0 255.255.255.255 UH 0 0 0 tap0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 Uml$ netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.1.2 0.0.0.0 UG 0 0 0 eth0 |