Hello my friends! Help me please with its problem. I`m don`t what it is problem... *mx# uname -a* FreeBSD mx.taricat.ru 8.0-STABLE FreeBSD 8.0-STABLE #1: Mon Jan 25 09:28:38 UTC 2010 root@mx.taricat.ru:/usr/obj/usr/src/sys/GENERIC i386 mx# *mx# ping 127.0.0.1* PING 127.0.0.1 (127.0.0.1): 56 data bytes ping: sendto: Can't assign requested address ping: sendto: Can't assign requested address ^C --- 127.0.0.1 ping statistics --- 2 packets transmitted, 0 packets received, 100.0% packet loss *mx# ping localhost* PING localhost (127.0.0.1): 56 data bytes ping: sendto: Can't assign requested address ping: sendto: Can't assign requested address ^C --- localhost ping statistics --- 2 packets transmitted, 0 packets received, 100.0% packet loss *mx# ping `hostname`* ping: cannot resolve mx.taricat.ru: Host name lookup failure *mx# ping google.com* PING google.com (74.125.87.103): 56 data bytes 64 bytes from 74.125.87.103: icmp_seq=0 ttl=56 time=188.367 ms 64 bytes from 74.125.87.103: icmp_seq=1 ttl=56 time=180.537 ms ^C --- google.com ping statistics --- 3 packets transmitted, 2 packets received, 33.3% packet loss round-trip min/avg/max/stddev = 180.537/184.452/188.367/3.915 ms *mx# ping 10.10.0.113* PING 10.10.0.113 (10.10.0.113): 56 data bytes ^C --- 10.10.0.113 ping statistics --- 193 packets transmitted, 0 packets received, 100.0% packet loss mx# *mx# netstat -rn* Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 10.10.0.126 UGS 2 97 xl0 10.10.0.112/28 link#1 U 2 465 xl0 10.10.0.114 link#1 UHS 0 0 lo0 Protocol Family 28: Destination Gateway Flags Netif Expire (28) 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001 0000 0000 (28) 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001 0000 0000 UH lo0 (28) 0000 0000 0000 fe80 0003 0000 0000 0000 0000 0000 0000 0000 0000 link#3 U lo0 (28) 0000 0000 0000 fe80 0003 0000 0000 0000 0000 0000 0001 0000 0000 link#3 UHS lo0 (28) 0000 0000 0000 ff01 0003 0000 0000 0000 0000 0000 0000 0000 0000 (28) 0000 0000 0000 fe80 0003 0000 0000 0000 0000 0000 0001 0000 0000 U lo0 (28) 0000 0000 0000 ff02 0003 0000 0000 0000 0000 0000 0000 0000 0000 (28) 0000 0000 0000 fe80 0003 0000 0000 0000 0000 0000 0001 0000 0000 U lo0 mx# *mx# less /etc/rc.conf* hostname="mx.taricat.ru" #ifconfig_xl0="inet 91.198.171.167 netmask 91.198.171.128" #defaultrouter="91.198.171.129" #ifconfig_ste0="inet 10.10.11.100 netmask 255.255.255.0" #pf_enable=YES #pf_rules="/etc/pf/conf" #named_enable=YES ifconfig_xl0="DHCP" sshd_enable=YES #pflog_enable=YES #clear_tmp_enable=YES #smartd_enabled=YES #samba_enable=YES #nmbd_enable=YES #smbd_enable=YES #samba_config="/usr/local/etc/smb.conf" #zfs_enable="YES" /etc/rc.conf (END)
Hi-- On Feb 11, 2010, at 9:13 AM, GLADtr GLADtr wrote:> Hello my friends! Help me please with its problem. I`m don`t what it is > problem...Do you have a lo0 interface? Is it up and using IP 127.0.0.1? # ifconfig lo0 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 Regards, -- -Chuck
I can add output by strace for ping localhost if it is necessary 2010/2/11 GLADtr GLADtr <my.nwsgrp@gmail.com>> Hello my friends! Help me please with its problem. I`m don`t what it is > problem... > > *mx# uname -a* > FreeBSD mx.taricat.ru 8.0-STABLE FreeBSD 8.0-STABLE #1: Mon Jan 25 > 09:28:38 UTC 2010 root@mx.taricat.ru:/usr/obj/usr/src/sys/GENERIC > i386 > mx# > > *mx# ping 127.0.0.1* > PING 127.0.0.1 (127.0.0.1): 56 data bytes > ping: sendto: Can't assign requested address > ping: sendto: Can't assign requested address > ^C > --- 127.0.0.1 ping statistics --- > 2 packets transmitted, 0 packets received, 100.0% packet loss > > *mx# ping localhost* > PING localhost (127.0.0.1): 56 data bytes > ping: sendto: Can't assign requested address > ping: sendto: Can't assign requested address > ^C > --- localhost ping statistics --- > 2 packets transmitted, 0 packets received, 100.0% packet loss > > *mx# ping `hostname`* > ping: cannot resolve mx.taricat.ru: Host name lookup failure > > *mx# ping google.com* > PING google.com (74.125.87.103): 56 data bytes > 64 bytes from 74.125.87.103: icmp_seq=0 ttl=56 time=188.367 ms > 64 bytes from 74.125.87.103: icmp_seq=1 ttl=56 time=180.537 ms > ^C > --- google.com ping statistics --- > 3 packets transmitted, 2 packets received, 33.3% packet loss > round-trip min/avg/max/stddev = 180.537/184.452/188.367/3.915 ms > > *mx# ping 10.10.0.113* > PING 10.10.0.113 (10.10.0.113): 56 data bytes > > ^C > --- 10.10.0.113 ping statistics --- > 193 packets transmitted, 0 packets received, 100.0% packet loss > mx# > > *mx# netstat -rn* > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif Expire > default 10.10.0.126 UGS 2 97 xl0 > 10.10.0.112/28 link#1 U 2 465 xl0 > 10.10.0.114 link#1 UHS 0 0 lo0 > > Protocol Family 28: > Destination Gateway Flags Netif Expire > (28) 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001 0000 0000 (28) > 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001 0000 0000 UH > lo0 > (28) 0000 0000 0000 fe80 0003 0000 0000 0000 0000 0000 0000 0000 0000 > link#3 U lo0 > (28) 0000 0000 0000 fe80 0003 0000 0000 0000 0000 0000 0001 0000 0000 > link#3 UHS lo0 > (28) 0000 0000 0000 ff01 0003 0000 0000 0000 0000 0000 0000 0000 0000 (28) > 0000 0000 0000 fe80 0003 0000 0000 0000 0000 0000 0001 0000 0000 U > lo0 > (28) 0000 0000 0000 ff02 0003 0000 0000 0000 0000 0000 0000 0000 0000 (28) > 0000 0000 0000 fe80 0003 0000 0000 0000 0000 0000 0001 0000 0000 U > lo0 > mx# > > *mx# less /etc/rc.conf* > hostname="mx.taricat.ru" > #ifconfig_xl0="inet 91.198.171.167 netmask 91.198.171.128" > #defaultrouter="91.198.171.129" > #ifconfig_ste0="inet 10.10.11.100 netmask 255.255.255.0" > #pf_enable=YES > #pf_rules="/etc/pf/conf" > #named_enable=YES > ifconfig_xl0="DHCP" > sshd_enable=YES > #pflog_enable=YES > #clear_tmp_enable=YES > #smartd_enabled=YES > #samba_enable=YES > #nmbd_enable=YES > #smbd_enable=YES > #samba_config="/usr/local/etc/smb.conf" > #zfs_enable="YES" > /etc/rc.conf (END) > > >
On Thu, Feb 11, 2010 at 08:13:04PM +0300, GLADtr GLADtr wrote:> Hello my friends! Help me please with its problem. I`m don`t what it is > problem... > > *mx# uname -a* > FreeBSD mx.taricat.ru 8.0-STABLE FreeBSD 8.0-STABLE #1: Mon Jan 25 09:28:38 > UTC 2010 root@mx.taricat.ru:/usr/obj/usr/src/sys/GENERIC i386 > mx# > > *mx# ping 127.0.0.1* > PING 127.0.0.1 (127.0.0.1): 56 data bytes > ping: sendto: Can't assign requested address > ping: sendto: Can't assign requested address > ^C > --- 127.0.0.1 ping statistics --- > 2 packets transmitted, 0 packets received, 100.0% packet loss > > *mx# ping localhost* > PING localhost (127.0.0.1): 56 data bytes > ping: sendto: Can't assign requested address > ping: sendto: Can't assign requested address > ^C > --- localhost ping statistics --- > 2 packets transmitted, 0 packets received, 100.0% packet loss > > *mx# ping `hostname`* > ping: cannot resolve mx.taricat.ru: Host name lookup failure > > *mx# ping google.com* > PING google.com (74.125.87.103): 56 data bytes > 64 bytes from 74.125.87.103: icmp_seq=0 ttl=56 time=188.367 ms > 64 bytes from 74.125.87.103: icmp_seq=1 ttl=56 time=180.537 ms > ^C > --- google.com ping statistics --- > 3 packets transmitted, 2 packets received, 33.3% packet loss > round-trip min/avg/max/stddev = 180.537/184.452/188.367/3.915 ms > > *mx# ping 10.10.0.113* > PING 10.10.0.113 (10.10.0.113): 56 data bytes > > ^C > --- 10.10.0.113 ping statistics --- > 193 packets transmitted, 0 packets received, 100.0% packet loss > mx# > > *mx# netstat -rn* > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif Expire > default 10.10.0.126 UGS 2 97 xl0 > 10.10.0.112/28 link#1 U 2 465 xl0 > 10.10.0.114 link#1 UHS 0 0 lo0 > > Protocol Family 28: > Destination Gateway Flags Netif Expire > (28) 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001 0000 0000 (28) > 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001 0000 0000 UH > lo0 > (28) 0000 0000 0000 fe80 0003 0000 0000 0000 0000 0000 0000 0000 0000 > link#3 U lo0 > (28) 0000 0000 0000 fe80 0003 0000 0000 0000 0000 0000 0001 0000 0000 > link#3 UHS lo0 > (28) 0000 0000 0000 ff01 0003 0000 0000 0000 0000 0000 0000 0000 0000 (28) > 0000 0000 0000 fe80 0003 0000 0000 0000 0000 0000 0001 0000 0000 U > lo0 > (28) 0000 0000 0000 ff02 0003 0000 0000 0000 0000 0000 0000 0000 0000 (28) > 0000 0000 0000 fe80 0003 0000 0000 0000 0000 0000 0001 0000 0000 U > lo0 > mx# > > *mx# less /etc/rc.conf* > hostname="mx.taricat.ru" > #ifconfig_xl0="inet 91.198.171.167 netmask 91.198.171.128" > #defaultrouter="91.198.171.129" > #ifconfig_ste0="inet 10.10.11.100 netmask 255.255.255.0" > #pf_enable=YES > #pf_rules="/etc/pf/conf" > #named_enable=YES > ifconfig_xl0="DHCP" > sshd_enable=YES > #pflog_enable=YES > #clear_tmp_enable=YES > #smartd_enabled=YES > #samba_enable=YES > #nmbd_enable=YES > #smbd_enable=YES > #samba_config="/usr/local/etc/smb.conf" > #zfs_enable="YES" > /etc/rc.conf (END)Your routing table *does not* match what you have in rc.conf. In fact, your IPs are no where near what's in rc.conf. Did you modify rc.conf and not reboot the box? Here's an example machine which works with dual interfaces. I've included relevant rc.conf pieces as well as the routing table. $ ifconfig -a em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4> ether 00:30:48:bd:46:7c inet 72.20.98.122 netmask 0xffffffc0 broadcast 72.20.98.127 media: Ethernet autoselect (1000baseT <full-duplex>) status: active em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4> ether 00:30:48:bd:46:7d inet 10.72.0.122 netmask 0xffffff00 broadcast 10.72.0.255 media: Ethernet autoselect (1000baseT <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 options=3<RXCSUM,TXCSUM> inet 127.0.0.1 netmask 0xff000000 $ netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 72.20.98.65 UGS 2 41750 em0 10.72.0.0/24 link#2 U 1 14265 em1 10.72.0.122 link#2 UHS 0 0 lo0 72.20.98.64/26 link#1 U 0 102 em0 72.20.98.122 link#1 UHS 0 0 lo0 127.0.0.1 link#3 UH 0 0 lo0 $ head -4 /etc/rc.conf hostname="ra.parodius.com" ifconfig_em0="inet 72.20.98.122 netmask 255.255.255.192" ifconfig_em1="inet 10.72.0.122 netmask 255.255.255.0" defaultrouter="72.20.98.65" -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |