LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 11-27-2012, 03:37 AM   #1
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 195

Rep: Reputation: 31
squeeze and 3nics


hi. i am running squeeze in a machine and i need to have three different local networks on three different cards.
-first card will see a network 192.168.0.0/24. the IP of the card will be 192.168.0.20
-second card will see a network 192.168.5.0/24. the IP of the card will be 192.168.5.20
-third card will see a network 10.0.0.0/24. the IP of the card will be 10.0.0.20


in the /etc/network/interfaces when i have it as dhcp it works, but when i add a static entry for IPs, it does not work. it gets into my nerves, as i cannot see all three different networks.

there is no NAT/firewalling, or any other complexity. Simply one machine that it can see 3 networks in 3 different cards.

may i have a sample config?
 
Old 11-27-2012, 05:27 AM   #2
jim_p
Member
 
Registered: Aug 2009
Distribution: Debian testing
Posts: 497

Rep: Reputation: 112Reputation: 112
First of all you have to find out which card gets which interface from (eth0 to eth2). Assuming eth0 is the 1st card, eth1 the second and eth2 the third one, you will need something like this

Code:
iface eth0 inet static
address 192.168.0.20
netmask 255.255.255.0
gateway 192.168.0.1


iface eth1 inet static
address 192.168.5.20
netmask 255.255.255.0
gateway 192.168.5.1

iface eth2 inet static
address 10.0.0.20
netmask 255.255.255.0
gateway 10.0.0.1

auto eth0
auto eth1
auto eth2
(change the gateways as you need)

Plus, you will have to remove network manager or wicd so as they won't interfere with those.
And check /etc/udev/rules.d/70-persistent-net.rules to find out which device gets which interface.

Last edited by jim_p; 11-27-2012 at 07:02 AM.
 
Old 11-27-2012, 06:00 AM   #3
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 195

Original Poster
Rep: Reputation: 31
really helpful.
thanks a lot
 
  


Reply


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
Various segmentation faults Debian Squeeze Virtualbox running on Debian Squeeze host fordwrench Debian 1 07-21-2011 04:55 AM
Trying squeeze keano LinuxQuestions.org Member Intro 1 03-06-2011 10:31 AM
[SOLVED] Waiting for Squeeze stable vs installing Squeeze right now and keeping it up to date alanv Linux - Newbie 2 11-03-2010 03:43 AM
Squeeze upgrade dellthinker Debian 3 08-10-2010 02:44 PM
The squeeze on squeeze? jmite Debian 8 09-30-2008 01:17 PM


All times are GMT -5. The time now is 01:32 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration