LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-22-2007, 05:30 PM   #1
tovis
Member
 
Registered: Jan 2007
Location: Budapest
Distribution: Debian
Posts: 74

Rep: Reputation: 15
network interface configuration


Old goody, Gigabyte 6BXDS - dual PentiumII/III - and two NIC's. Installing Etch 4.0 - clean minimum - no appluications are selected, onlyy some tools.
First NIC is a Realtek 8169 gigabit ethernet card and the second is an Intel 100. Each of them use static IP address configuration.
After boot both of them obtain right IP address and working (seem to be) well but when using
#/etc/init.d/networking restart
I haver loose of them, only the loopback interface is working! How is it could be?
 
Old 12-22-2007, 05:40 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
post
/etc/network/interfaces
 
Old 12-23-2007, 08:54 AM   #3
tovis
Member
 
Registered: Jan 2007
Location: Budapest
Distribution: Debian
Posts: 74

Original Poster
Rep: Reputation: 15
/etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.253
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.254
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 213.46.246.51 213.46.246.52
dns-search tovis-lab.hu

allow-hotplug eth1
iface eth1 inet static
address 172.31.28.53
netmask 255.255.255.0
network 172.31.28.0
broadcast 172.31.28.255



It does not seem to be wrong.
May be one thing, without "allow-hotplug eth1" does not up at all?!
 
Old 12-23-2007, 02:05 PM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
What are you trying to do with eth1?
 
Old 12-23-2007, 02:47 PM   #5
tovis
Member
 
Registered: Jan 2007
Location: Budapest
Distribution: Debian
Posts: 74

Original Poster
Rep: Reputation: 15
Nothing, for now - this box would be a firewall.
I need to reread ifconfig man page - instead of allow-hotplug - I simple need "auto eth0" and "auto eth1".
 
Old 12-23-2007, 03:05 PM   #6
richinsc
Member
 
Registered: Mar 2007
Location: Utah
Distribution: Ubuntu Linux (20.04)
Posts: 224

Rep: Reputation: 32
Run command as root

Code:
ifdown eth0
followed by

Code:
ifup eth0
and see if the interfaces pulls the configuration and configures properly.

You could also see if you can ping the between the two nics by setting them on the same network and plugging into a switch to see if they can communicate.
 
Old 12-24-2007, 07:26 AM   #7
restless
Member
 
Registered: Feb 2003
Location: Belgium
Distribution: Debian
Posts: 166

Rep: Reputation: 31
try adding eth0 and eth1 after auto lo

so that it becomes

Code:
auto lo eth0 eth1
then it will try to bring all 3 interfaces up right after boot.
 
  


Reply



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
In FC6 network interface doesn't come up if 'service network restart' command is run rajat Linux - Networking 2 05-02-2007 11:53 PM
network interface (BCM4401-B0) hangs on hight network load indig0kid Linux - Hardware 0 03-09-2007 09:49 AM
HID interface configuration paksas Linux - Laptop and Netbook 1 05-01-2005 02:58 PM
Network interface configuration problem on SUSE 9.1 martinwe Linux - Hardware 4 09-07-2004 04:46 PM
Automatic Interface Configuration redsky Debian 7 05-27-2004 03:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:24 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