LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-20-2006, 11:51 PM   #1
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 322

Rep: Reputation: 59
network


Hi
The thing is that I've got a computer with multiple network cards, and can't connet it to internet. It looks like everything has been installed, but after
"ifconfig" I've got something like this, without eth0 and eth1
[HTML]lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)[/HTML]

after "cat /proc/net/dev"
][HTML]Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
lo: 0 3339 0 0 0 0 0 0 3339 0 0 0 0 0 0 0
eth0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
eth1: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0[/HTML]
a computer is 64 bit tech. if it's metter
thx
 
Old 04-21-2006, 01:44 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
A couple of questions:
  1. Did you run "netconfig" and enter information about your network (to use either DHCP or explicitly tell about IP address, netmask, gateway)
  2. Did you connect a network cable to the network card that represents "eth0" device? The "netconfig" command will use the information you entered to configure "eth0" so if you have connected "eth1" you won't have a working network

To see the answer to question (1) please show us the output of the commands:
Code:
cat /etc/rc.d/rc.inet1.conf | grep -v "^#"
and
Code:
cat /etc/resolv.conf
For the second question, you can check what interface is actually connected to the network by checking the output of these two commands (the second and third command are only needed if the first command doesn't show anything conclusive), and could you please post this output if you can't find the answer yourself? Run the commands as user "root". Look for "link" information, like "Link detected: yes" or "Link OK"
Code:
mii-tool
ethtool eth0
ethtool eth1
If it is the eth1 interface that is connected, then you will have to edit the file /etc/rc.d/rc.inet1.conf by hand, and apply all the values for eth0 that you find there (the array elements with [0]) to eth1 (the array elements with [1]), and after editing run
Code:
/etc/rc.d/rc.inet1 restart
Eric
 
Old 04-21-2006, 01:45 AM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
It looks like the Ethernet interfaces are there, they just don't have any IPs set.

Are you trying to have them setup with static or DHCP?

The easy way to setup the NIC in Slackware is to run "netconfig", but I am fairly sure that will only do it for one card.
 
Old 04-24-2006, 11:28 PM   #4
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 322

Original Poster
Rep: Reputation: 59
Hi
ok, here is output for
[HTML]cat /etc/rc.d/rc.inet1.conf | grep -v "^#"
[/HTML]
[HTML]
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""

IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

GATEWAY=""

DEBUG_ETH_UP="no"


# the default 'eth4'
# 1360 when you use NAT'ed IPSec traffic.
# your default gateway
# server
# defined in rc.wireless.conf, by prepending
# 'WLAN_' to the parameter's name. Useful for
# those with multiple wireless interfaces.
# Some drivers require a private ioctl to be
# set through the iwpriv command. If more than
# one is required, you can place them in the
# IWPRIV parameter (space-separated, see the
# example).
[/HTML]
[HTML]cat /etc/resolv.conf
search hcl.org[/HTML]
[HTML]
mii-tool
eth0:no link
negotiated 100baseTx-FD, link ok
[/HTML]
[HTML]ethtool etho
ethtool eth1
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: Unknown ! (655525)
Duplex: Unknown ! (255)
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: umbg
Wake-on: g
Current message level: 0x00000007 (7)
Link detected: no[/HTML]
I used 'netconfig' "DHCP", but it could be the same with "STATIC IP" for multiple network cards, probably.
isn't it?.
Thx, and sorry for that late respond, I've been out of town.
 
Old 04-24-2006, 11:48 PM   #5
the.madjack
Member
 
Registered: Apr 2006
Distribution: Slackware 10.2
Posts: 52

Rep: Reputation: 15
hmm..u dont seems to using DHCP here. Are you sure the same thing happens when u set to static ip using netconfig? Maybe you can try to edit the /etc/rc.d/rc.inet1.conf directly without using netconfig. just a guess
 
Old 04-25-2006, 03:34 AM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Both "mii-tool" and "ethtool eth0" report no link. I don't see any output from the "ethtool eth1" command, but in any case, the network card that you connected to your network is certainly not eth0.
In /etc/rc.d/rc.inet1.conf I can see that you only configured the eth0 interface (which is what happens when you run "netconfig").
The simplest solution is open the file "/etc/rc.d/rc.inet1.conf" in an editor such as vi or pico, and add DHCP support for the eth1 interface - change
Code:
USE_DHCP[1]=""
into
Code:
USE_DHCP[1]="yes"
This way, it will not matter which interface is connected - one gets an IP address from the DHCP server, and the other one will wait a while until it decides there is no DHCP server to be found.


Eric
 
Old 04-28-2006, 05:49 PM   #7
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 322

Original Poster
Rep: Reputation: 59
Thanks,
can you tell me one more thing, how can I configure 2 diferent IP adresses for 2 diferent domains?
 
Old 04-28-2006, 05:51 PM   #8
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Your question makes no sense to me. Perhaps you can try and rephrase it? What is it that you want to accomplish?

Eric
 
Old 04-29-2006, 01:23 PM   #9
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 322

Original Poster
Rep: Reputation: 59
Hi
I had have dhcp connection but I'll have 5 static IP addresses and I want to use 3 of them for diferent domains(http,ftp)?
Does that make any sense?.
Thx

Last edited by Nikosis; 04-29-2006 at 01:31 PM.
 
Old 04-29-2006, 01:50 PM   #10
Voltar
Member
 
Registered: Jan 2006
Location: Bakersfield, California
Distribution: CentOS 5.3, FreeBSD 7.2, Fedora 11
Posts: 83

Rep: Reputation: 15
Are you saying you have five public IP addresses routed to your machine, and you want to bind specific services to each one?
 
Old 04-29-2006, 02:00 PM   #11
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
If you mean you own multiple domains and want to run http and ftp server, for all of those domains, with different content for these domains, and tie an IP address to each domain, then what you want to read about is "virtual hosts".
You will also have to bind all those IP addresses to the single network interface of your computer - you can do that by directly editing /etc/rc.d/rc.inet1.conf and adding sections for network interface aliases. Suppose your external NIC is called eth0, then it's aliases would be called eth0:1 eth0:2 etc...

Eric
 
Old 05-01-2006, 09:31 AM   #12
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 322

Original Poster
Rep: Reputation: 59
ok
Thanks for Advices.
ps. I let you know how it goes, soon.

Last edited by Nikosis; 05-01-2006 at 09:36 AM.
 
  


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
Fedora C2 - Wireless network drivers? Broadcom 802.11g Network Adapter FragTek Linux - Wireless Networking 7 01-22-2010 12:10 AM
3c905C network card in docking station. Cannot activate network device eth0. pathelms Linux - Networking 4 04-12-2006 02:55 PM
Xandros mount point for Windows Network & NFS Network jaagut Linux - Distributions 1 09-14-2005 07:21 AM
Network speed problems on 15 user network to broadband wireless router AntWarrior Linux - Wireless Networking 2 12-02-2004 11:05 AM
Newbie wanna setup up a linux network on existing home network... marvc Linux - Networking 3 03-19-2003 09:02 PM

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

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