[indiana-discuss] Help with static IP address and link aggregation
David Abrahams
dave at boostpro.com
Thu Jun 11 08:32:06 PDT 2009
on Thu Jun 11 2009, "Fajar A. Nugraha" <fajar-AT-fajar.net> wrote:
> On Thu, Jun 11, 2009 at 8:56 PM, David Abrahams<dave at boostpro.com> wrote:
>> Here's what it contains:
>>
>> # cat /etc/resolv.conf
>> domain luannocracy.com
>> # nameserver 192.168.188.1
>> nameserver 207.172.3.8
>> nameserver 207.172.3.9
>> nameserver 207.172.3.10
>> nameserver 207.172.3.11
>>
>> Interestingly, I can get it to succeed at doing nslookup, host, or dig
>> if I uncomment the first nameserver, which is my local router that
>> happens to forward to the nameservers shown in that list. However,
>> traceroute fails without showing a single hop, and browsing the web is
>> hopeless. I /can/ access addresses on my local subnet.
>
> What does "netstat -nr" show? Have you setup the correct default route?
> can you ping those DNS servers?
$ netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
127.0.0.1 127.0.0.1 UH 1 12 lo0
Routing Table: IPv6
Destination/Mask Gateway Flags Ref Use If
--------------------------- --------------------------- ----- --- ------- -----
::1 ::1 UH 1 0 lo0
dave at installadm:~$ pfexec route -p add 192.168.188.1
route: gateway required for add or delete command
dave at installadm:~$ man ifconfig
dave at installadm:~$ man route
dave at installadm:~$ pfexec route -p add 192.168.188.1 192.168.188.1
add host 192.168.188.1: gateway 192.168.188.1: Network is unreachable
dave at installadm:~$ pfexec route delete 192.168.188.1 192.168.188.1
delete host 192.168.188.1: gateway 192.168.188.1: not in table
dave at installadm:~$ cat /etc/resolv.conf
domain luannocracy.com
nameserver 208.67.222.222
nameserver 208.67.222.220
#nameserver 192.168.188.1
#nameserver 207.172.3.8
#nameserver 207.172.3.9
#nameserver 207.172.3.10
#nameserver 207.172.3.11
dave at installadm:~$ pfexec route -p add 208.67.222.222 192.168.188.1
add host 208.67.222.222: gateway 192.168.188.1: Network is unreachable
dave at installadm:~$ ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
eth0: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.188.44 netmask ffffff00 broadcast 192.168.188.255
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
inet6 ::1/128
--
Dave Abrahams
BoostPro Computing
http://www.boostpro.com
More information about the indiana-discuss
mailing list