I have 1 cable plug to server.
1st time, I connect this cable to dmfe0 and try to ping my PC. Here is the output:
Code:
-bash-3.00# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
dmfe0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.1.2 netmask ffffff00 broadcast 192.168.1.255
ether 0:3:ba:11:bf:9b
dmfe1: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 3
inet 192.168.1.4 netmask ffffff00 broadcast 192.168.1.255
ether 0:3:ba:11:bf:9c
-bash-3.00# ping 192.168.1.44
192.168.1.44 is alive
Next, I move the cable connect from dmfe0 to dmfe1 and ping my pc again
Code:
-bash-3.00# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
dmfe0: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.1.2 netmask ffffff00 broadcast 192.168.1.255
ether 0:3:ba:11:bf:9b
dmfe1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 192.168.1.4 netmask ffffff00 broadcast 192.168.1.255
ether 0:3:ba:11:bf:9c
-bash-3.00# ping 192.168.1.44
no answer from 192.168.1.44
The content of /etc/hostname.dmfe1
Code:
-bash-3.00# cat /etc/hostname.dmfe1
192.168.1.4 netmask 255.255.255.0
and the result of netstat -rn command
Code:
-bash-3.00# netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.1.0 192.168.1.2 U 1 2 dmfe0
192.168.1.0 192.168.1.4 U 1 0 dmfe1
224.0.0.0 192.168.1.2 U 1 0 dmfe0
default 192.168.1.1 UG 1 2
127.0.0.1 127.0.0.1 UH 4 77 lo0
-bash-3.00#