View Single Post
  #5   (View Single Post)  
Old 13th June 2019
notooth notooth is offline
Shell Scout
 
Join Date: Jul 2015
Posts: 125
Default

There is no gateway with the new IP address:
Code:
# route -n show -inet
Routing tables

Internet:
Destination        Gateway            Flags   Refs      Use   Mtu  Prio Iface
default            192.168.100.1      UGS       41      487     -     8 em0  
224/4              127.0.0.1          URS        0        0 32768     8 lo0  
127/8              127.0.0.1          UGRS       0        0 32768     8 lo0  
127.0.0.1          127.0.0.1          UHhl       1        2 32768     1 lo0  
192.168.100/24     192.168.100.12     UCn        1     5920     -     4 em0  
192.168.100.1      2c:ab:00:ac:49:40  UHLch      1     4732     -     3 em0  
192.168.100.12     b4:b5:2f:dd:b2:ac  UHLl       0      240     -     1 em0  
192.168.100.255    192.168.100.12     UHb        0       18     -     1 em0  

# ifconfig em0 192.168.100.200/24

# route -n show -inet                  
Routing tables

Internet:
Destination        Gateway            Flags   Refs      Use   Mtu  Prio Iface
224/4              127.0.0.1          URS        0        0 32768     8 lo0  
127/8              127.0.0.1          UGRS       0        0 32768     8 lo0  
127.0.0.1          127.0.0.1          UHhl       1        2 32768     1 lo0  
192.168.100/24     192.168.100.200    UCn        1        6     -     4 em0  
192.168.100.1      2c:ab:00:ac:49:40  UHLc       0        9     -     3 em0  
192.168.100.200    b4:b5:2f:dd:b2:ac  UHLl       0        2     -     1 em0  
192.168.100.255    192.168.100.200    UHb        0        0     -     1 em0
Reply With Quote