Hi,
in a LAN with the router running DHCP for most devices all devices but one with a static IP get access to the WAN.
The one device with a static ip can reach all other devices on the LAN but not the internet.
The DHCP ip range does not include any of the static ip addresses.
A ping to the router work.
I can get into the box with ssh from within the LAN.
A ping at google (8.8.8.8) results in "No route to host"
What could I have mixed up?
and
in a LAN with the router running DHCP for most devices all devices but one with a static IP get access to the WAN.
The one device with a static ip can reach all other devices on the LAN but not the internet.
The DHCP ip range does not include any of the static ip addresses.
A ping to the router work.
I can get into the box with ssh from within the LAN.
A ping at google (8.8.8.8) results in "No route to host"
What could I have mixed up?
Code:
$ ifconfig -a
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 10.0.0.2 netmask 0xffffff00
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
ue0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80009<RXCSUM,VLAN_MTU,LINKSTATE>
ether b8:27:eb:2f:c7:c8
inet6 fe80::ba27:ebff:fe2f:c7c8%ue0 prefixlen 64 scopeid 0x2
inet 10.0.0.2 netmask 0xffffff00 broadcast 10.0.0.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
and
Code:
$ netstat -rn
Routing tables
Internet:
Destination Gateway Flags Netif Expire
default 10.0.0.1 UGS lo0
10.0.0.0/24 link#2 U ue0
10.0.0.2 link#1 UHS lo0
127.0.0.1 link#1 UH lo0
Internet6:
Destination Gateway Flags Netif Expire
::/96 ::1 UGRS lo0
::1 link#1 UHS lo0
::ffff:0.0.0.0/96 ::1 UGRS lo0
fe80::/10 ::1 UGRS lo0
fe80::%lo0/64 link#1 U lo0
fe80::1%lo0 link#1 UHS lo0
fe80::%ue0/64 link#2 U ue0
fe80::ba27:ebff:fe2f:c7c8%ue0 link#2 UHS lo0
ff02::/16 ::1 UGRS lo0
10.0.0.1
is really the router and WAN gateway.
Code:
$ less /etc/rc.conf
hostname="r3b"
ifconfig_DEFAULT="inet 10.0.0.2 netmask 255.255.255.0"
defaultrouter="10.0.0.1"
sshd_enable="YES"