Date: Wed, 8 Jun 2005 15:15:30 +0800 From: Xu Qiang <Qiang.Xu@fujixerox.com> To: Jonathan Chen <jonc@chen.org.nz>, Xu Qiang <Qiang.Xu@fujixerox.com> Cc: freebsd-questions@FreeBSD.org Subject: RE: DNS and Gateway in FreeBSD? Message-ID: <20050608070514.25D5A1D92E@imss.sgp.fujixerox.com>
next in thread | raw e-mail | index | archive | help
Jonathan Chen wrote: > /etc/rc.conf, output of "netstat -rn", "ifconfig -a" would help. The output of "ifconfig -a" is: = ------------------------------------------- gso_dev_2# ifconfig -a xl0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=3D9<RXCSUM,VLAN_MTU> inet 13.198.33.131 netmask 0xfffffc00 broadcast 13.198.35.255 inet6 fe80::2b0:d0ff:fe44:403c%xl0 prefixlen 64 scopeid 0x1 = ether 00:b0:d0:44:40:3c media: Ethernet autoselect (10baseT/UTP) status: active plip0: flags=3D108810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500 lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet 127.0.0.1 netmask 0xff000000 = inet6 ::1 prefixlen 128 = inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 = ------------------------------------------- The content of /etc/rc.conf: = ------------------------------------------- # -- sysinstall generated deltas -- # Tue Apr 12 23:53:44 2005 # Created: Tue Apr 12 23:53:44 2005 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. defaultrouter=3D"13.198.32.1" hostname=3D"gso_dev_2.workgroup" ifconfig_xl0=3D"inet 13.198.33.131 netmask 255.255.252.0" linux_enable=3D"YES" moused_enable=3D"YES" usbd_enable=3D"YES" ------------------------------------------- I didn't remember I have added the gateway "13.198.32.1". I manually added = the ip address (13.198.33.131) and netmask (255.255.252.0), so I wonder how= the gateway was added into this file. And I didn't have any DNS setting here. Yet it can "ping www.yahoo.com" suc= cessfully. Quite strange. :( Regards, Xu Qiang
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050608070514.25D5A1D92E>