Just had another go - booted first with ec0 as the primary interface in netif.options, pinged it fine from another machine, and could ping to that machine also. The two machines were connected via the switch, as none of my ethernet cables is a crossover.
I saved outputs of "ifconfig", "netstat -i" and "netstat -rn", edited netif.options to make fe0 the primary interface and powered down/up (KVM doesn't like a simple reboot, sadly). Then captured the same info to file, to compare and post here for comments.
Outputs from "ifconfig -av":
With ec0 as primary interface:
Code:
ec0: flags=8400c43<UP,BROADCAST,RUNNING,FILTMULTI,MULTICAST,IPALIAS,IPV6>
inet 10.236.2.97 netmask 0xffffff00 broadcast 10.236.2.255
speed 10.00 Mbit/s half-duplex
fe0: flags=822<BROADCAST,NOTRAILERS,MULTICAST>
lo0: flags=8001849<UP,LOOPBACK,RUNNING,MULTICAST,CKSUM,IPV6>
inet 127.0.0.1 netmask 0xff000000
With fe0 as primary interface:
Code:
fe0: flags=c63<UP,BROADCAST,NOTRAILERS,RUNNING,FILTMULTI,MULTICAST>
inet 10.236.2.97 netmask 0xffffff00 broadcast 10.236.2.255
ec0: flags=8400802<BROADCAST,MULTICAST,IPALIAS,IPV6>
speed 10.00 Mbit/s half-duplex
lo0: flags=8001849<UP,LOOPBACK,RUNNING,MULTICAST,CKSUM,IPV6>
inet 127.0.0.1 netmask 0xff000000
Outputs from "netstat -i" - note that the fe0 interface can receive packets without error, but seems unable to send outgoing packets. Pinging the I2 from another machine causes the "Ipkts" number to increase.
With ec0 as active interface:
Code:
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
ec0 1500 10.236.2 bluebox 60 0 20 0 0
fe0* 1500 none none 0 0 0 0 0
lo0 8304 loopback localhost 1355 0 1355 0 0
With fe0 as active interface:
Code:
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
fe0 1500 10.236.2 bluebox 98 0 20 20 0
ec0* 1500 none none 0 0 0 0 0
lo0 8304 loopback localhost 1373 0 1373 0 0
Finally, output of "netstat -rn" using ec0 as primary interface, then with fe0
Code:
Routing tables
Internet:
Destination Gateway Netmask Flags Refs Use Interface
default 10.236.2.1 UGS 1 0 ec0
10.236.2 link#1 0xffffff00 UC 0 0 ec0
10.236.2.97 127.0.0.1 UGHS 0 0 lo0
127.0.0.1 127.0.0.1 UH 7 2 lo0
224 link#1 0xf0000000 UCS 0 0 ec0
255.255.255.255 10.236.2.255 UGHS 0 0 ec0
This is the equivalent when fe0 is the active interface:
Code:
Routing tables
Internet:
Destination Gateway Netmask Flags Refs Use Interface
default 10.236.2.1 UGS 1 0 fe0
10.236.2 link#2 0xffffff00 UC 0 0 fe0
10.236.2.97 127.0.0.1 UGHS 0 0 lo0
127.0.0.1 127.0.0.1 UH 6 2 lo0
224 link#2 0xf0000000 UCS 0 0 fe0
255.255.255.255 10.236.2.255 UGHS 0 0 fe0
The only difference I can see is the "link#" entries (and the localhost flags number). Should link#2 here be link#1, and if so how do I change it?
Any other thoughts?
Thanks,
Andrew