Date: Thu, 12 Feb 2009 22:38:02 +0100 From: Nikolaj Thygesen <mailinglist@diamondbox.dk> To: Gonzalo Nemmi <gnemmi@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Assigning static ip address Message-ID: <499496BA.6040706@diamondbox.dk> In-Reply-To: <200902121916.54861.gnemmi@gmail.com> References: <49947FC4.4000400@diamondbox.dk> <200902121916.54861.gnemmi@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Gonzalo Nemmi wrote: > On Thursday 12 February 2009 6:00:04 pm Nikolaj Thygesen wrote: > > Could you plase configure your /etc/rc.conf file to something like this? > > ifconfig_ed0="inet 192.168.1.105 netmask 255.255.255.0" > defaultrouter="192.168.1.1" > > Where "defaultrouter" is the IP of your dhcp server and tell me what happens? > > Regards > When I do, I get: 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:1b:21:1b:fd:bd inet6 fe80::21b:21ff:fe1b:fdbd%em0 prefixlen 64 scopeid 0x1 inet 192.168.1.105 netmask 0xffffff00 broadcast 192.168.1.255 media: Ethernet autoselect (1000baseTX <full-duplex>) status: active I still get no connectivity until i run "dhclient em0" which gives me: 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:1b:21:1b:fd:bd inet6 fe80::21b:21ff:fe1b:fdbd%em0 prefixlen 64 scopeid 0x1 inet 192.168.1.105 netmask 0xffffff00 broadcast 192.168.1.255 inet 10.0.0.2 netmask 0xffffff00 broadcast 10.0.0.255 media: Ethernet autoselect (1000baseTX <full-duplex>) status: active adding what I guess is called an alias 10.0.0.2 ip?!?! I'm not that much of an expert in these matters, and I'm a bit puzzled why, at first (before calling dhclient), it can't resolve addresses eventhough "/etc/resolv.conf" contains all my dns's. br - N
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?499496BA.6040706>