PDA

View Full Version : [ubuntu] getting nic cards configured properly



Ed_Ziffel
October 5th, 2011, 08:33 PM
Configuring two Nic cards to static
Been going around in circles for 3 day now. Lots of bits and pieces on the web but no working solution.

Want to install a second nic card to an existing Ubuntu 10.04 lts machine and configure them both static with the objective of assigning one of them to point to an intranet webset for machines on the lan and the other for file sharing and general internet connection. Have Samba installed, LAMP via sudo tasksel, already installed and working quite well.

Can get either of the two network cards to run one at at time with static assignment. However at least one of them is ignored when both are used. Using the
Note: Have changed the mac address and network info before posting. Please assume that all is well with that aspect if you spot an error in the numbers as it was changed by hand.

From ifconfig;


eth0 Link encap:Ethernet HWaddr 04:ac:f7:6a:36:c6
inet addr:192.168.26.30 Bcast:192.168.26.255 Mask:255.255.255.0
inet6 addr: fe80::230:67Df:feaa:3606/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:310 errors:0 dropped:0 overruns:0 frame:0
TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:22547 (22.5 KB) TX bytes:3773 (3.7 KB)
Interrupt:27 Base address:0xc000

eth1 Link encap:Ethernet HWaddr 02:40:a1:bf:2S:cf
inet addr:192.168.26.3 Bcast:192.168.26.255 Mask:255.255.255.0
inet6 addr: fe80::240:f28f:febf:21cf/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12653 errors:0 dropped:0 overruns:0 frame:0
TX packets:9073 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7781971 (7.7 MB) TX bytes:1615807 (1.6 MB)
Interrupt:20 Base address:0xb800

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:491 errors:0 dropped:0 overruns:0 frame:0
TX packets:491 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:42996 (42.9 KB) TX bytes:42996 (42.9 KB)


From my /etc/network/interfaces file:


auto lo
iface lo inet loopback

auto eth0
iface etho inet static
address 192.168.26.30
network 192.168.26.0
netmask 255.255.255.0
broadcast 192.168.26.255
gateway 192.168.26.1

auto eth1
iface eth1 inet static
address 192.168.26.3
network 192.168.26.0
netmask 255.255.255.0
broadcast 192.168.26.255
gateway 192.168.26.1


From my /etc/NetworkManager/nm-system_settings.conf


# This file is installed into /etc/NetworkManager, and is loaded by
# NetworkManager by default. To override, specify: '--config file'
# during NM startup. This can be done by appending to DAEMON_OPTS in
# the file:
#
# /etc/default/NetworkManager
#

[main]
plugins=ifupdown,keyfile

no-auto-default=02:40:a1:bf:2S:cf,04:ac:f7:6a:36:c6,

[ifupdown]
managed=true

From the /etc/resolv.conf file:


# Generated by NetworkManager
search MYDOMAIN
nameserver 192.168.26.1
restarting networking I get:
Quote:
~$ sudo /etc/init.d/networking restart
* Reconfiguring network interfaces...
Ignoring unknown interface eth0=eth0.
WARNING: ifup -a is disabled in favour of NetworkManager.
Set ifupdown:managed=false in /etc/NetworkManager/nm-system-settings.conf.
[ OK ]

What do I need to do to get both Nic cards up and running so that I can then have one set as an address for lan access to an intranet website and the other to access the lan for file shareing and internet?

Doug S
October 5th, 2011, 10:49 PM
Here is a reference and it contains links to other references: http://ubuntuforums.org/showthread.php?t=1405144
I think 2 NICS on one sub-net is a no no.

Edit: This posting seems to be a double posting. The other one is here: http://ubuntuforums.org/showthread.php?t=1853706

AskTell
October 6th, 2011, 02:27 AM
this is a double post

auto lo
iface lo inet loopback

auto eth0
iface etho inet static <---- you put the letter o where the number 0 belongs
address 192.168.26.30
network 192.168.26.0
netmask 255.255.255.0
broadcast 192.168.26.255
gateway 192.168.26.1

auto eth1
iface eth1 inet static
address 192.168.26.3
network 192.168.26.0
netmask 255.255.255.0
broadcast 192.168.26.255
gateway 192.168.26.1