I switched back from a single NIC setup to double NIC, and now I can't access (with some weird exceptions) the LMCE hybrid on its external interface.
I had switched my LMCE to a
Single NIC and it was working fine (no LMCE devices, just a hybrid). But I want to start testing/using my Cisco 7970 IP hardphone, which needs to netboot, so I decided to go with the (LMCE default) double-NIC setup. I installed a 3Com 3C905C-TX PCI card in the machine (which shows up in lspci):
# lspci |grep Ethernet
05:08.0 Ethernet controller: Intel Corporation 82801DB PRO/100 VM (LOM) Ethernet Controller (rev 81)
05:0a.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 30)
Then I started following the
"Single to Double NIC" wiki instructions. In the first step, "Web Admin: Advanced menu > Network > Network Settings", I saw that LMCE saw 2 network cards, though it offered to config them as eth0 (configurable with either DHCP or static IP/netmask/gateway) and eth0:0 (just a static IP# config), which was strange, because eth0:0 is virtual, and I've got 2 physical cards. But Linux (ifconfig) does see the 2nd ethernet interface as eth0:0 . Following (by inference) the wiki instructions, I set the eth0:0 IP# to 192.168.1.10 (leaving the eth0 interface manually set to 192.168.0.10/255.255.255.0). When I submitted the change, the page did not return, though the eth0:0 IP# is changed and apache is still running. The Adminsite is gone, as the external interface IP# no longer seems to have a webserver listening.
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0B:CD:01:72:4C
inet addr:192.168.0.10 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20b:cdff:fe01:724c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2033061 errors:0 dropped:0 overruns:0 frame:0
TX packets:10922155 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1591419024 (1.4 GiB) TX bytes:2071456480 (1.9 GiB)
eth0:0 Link encap:Ethernet HWaddr 00:0B:CD:01:72:4C
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:9936648 errors:0 dropped:0 overruns:0 frame:0
TX packets:9936648 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2823888630 (2.6 GiB) TX bytes:2823888630 (2.6 GiB)
# ps aux |grep apache
root 20509 0.0 0.3 2880 756 pts/15 R+ 08:38 0:00 grep apache
root 25556 0.0 2.7 23348 6728 ? Ss Dec17 0:00 /usr/sbin/apache2 -k start
www-data 25574 0.0 1.4 23348 3484 ? S Dec17 0:00 /usr/sbin/apache2 -k start
www-data 25575 0.0 1.4 23348 3480 ? S Dec17 0:00 /usr/sbin/apache2 -k start
www-data 25576 0.0 1.4 23348 3480 ? S Dec17 0:00 /usr/sbin/apache2 -k start
www-data 25577 0.0 1.4 23348 3480 ? S Dec17 0:00 /usr/sbin/apache2 -k start
www-data 25578 0.0 1.4 23348 3480 ? S Dec17 0:00 /usr/sbin/apache2 -k start
I expect that apache is now listening on the eth0:0 interface. I haven't tested that, because I don't want to believe that LMCE exposes the Adminsite to only its internal LAN segment, rather than to other devices on the external LAN segment with the hybrid. I hope someone can explain otherwise.
# cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
gateway 192.168.0.1
auto eth0:0
iface eth0:0 inet static
address 192.168.1.10
netmask 255.255.255.0
Meanwhile, there are other weird symptoms: I'm still logged into a working ssh session started before I changed the eth0:0 IP#, but I can't initiate new ones to the old IP# (which should still be configured on eth0). Pinging that old IP# fails with 100% packet loss.
I'm not even sure where to change the eth0:0 IP# back to the old 192.168.0.10 IP#, to undo that last (catastrophic) change, with my ssh or console access. I guess I can just reinstall LMCE from scratch, but there should be a way to switch back & forth between single and double NIC setups. Any advice?