LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-17-2014, 11:07 PM   #1
cilbuper
Member
 
Registered: Mar 2008
Posts: 141

Rep: Reputation: 0
Question Multiple networks & NICS - need help with static assignments


OS = Ubuntu 12.04.4 Server

This is running in VMware player and the NIC's are "custom" bridged network adapters which basically show up as a regular NIC on a network. I want to set this up as a webserver.

I edited my /etc/network/interfaces file to this:

Code:
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.2.120
        netmask 255.255.255.0
        network 192.168.2.0
        broadcast 192.168.0.255
        gateway 192.168.2.254
        dns-nameservers 8.8.8.8 8.8.4.4

# NAS Network
auto eth1
iface eth1 inet static
        address 10.0.0.209
        netmask 255.255.255.0
        gateway 10.0.0.1


# Cable network
auto eth2
iface eth2 inet static
        address 192.168.1.120
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        dns-nameservers 8.8.8.8 8.8.4.4
I can't see any of these NIC's on the network and can't ping them and can't ping out of the machine. The network works with the default install of DHCP.

for eth1 I copied it from a working Kubuntu desktop machine that is using the same NIC setup on VMplayer - I just changed the IP address from 206 to 209. It is on an isolated network with no router or gateway (just switched).

eth0 is a DSL connection and the data is correct.
eth2 is a cable connection and again, data is correct.

I was following a guide for "the perfect server" on howtoforge for this interfaces file. I usually don't include the "network, broadcast and dns-nameservers part" so I'm not sure if this is correct.

Does anyone see a problem? Is there a way to prioritize NIC's for data?
 
Old 09-18-2014, 03:24 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,892

Rep: Reputation: 163Reputation: 163
The network, broadcast and dns-nameservers isn't required. Should be deleted.
If no router in the network, each interface can't ping others.
 
  


Reply

Tags
configuration, multiple nics, network interface, ubuntu 12.04


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] 1 server, 2 nics, 2 networks mbvo Linux - Networking 7 12-10-2013 09:56 AM
2 nics, 2 networks help. chrisknight Linux - Networking 5 12-19-2004 02:21 PM
2 nics, 2 networks, 2 problemas kangaegoto Linux - Networking 1 12-19-2004 07:58 AM
2 NICs 2 networks 2 gateways birkinshawc Linux - Networking 1 05-29-2004 04:05 PM
IPTables & multiple nics Smerk Linux - Networking 1 12-10-2002 08:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration