Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello everyone,
after the weekend of trying to figure out why there is no internet in my PC i decided to ask help from you. I'm using Slackware for about 4 years and i know about Linux all i need to use it normally, i mean that i'm not advanced Linux user. So here's the problem:
I have internet which demands Right MAC address, IP, NetMask, GW, DHCP, DNS names. On windows it is enough to specify MAC address and it gets all other (though DHCP i guess) Earlyer i just had to edit /etc/rc.d/rc.inet1.conf and everything were good, till i installed Slacware 11 to my laptop. I also changed kernel to 2.6.21. I'm not sure, but i think that internet wasn't working with old kernel also. I also used netconfig, but the same result. When linux loads eth0 is down. I tried to "up" it in rc.local, but no results. Through konsole it's done without problems. When i plug in internet cable a small download starts (about 3-4 kB/s).
P.S. during boot the line "dhcpcd: MAC address = 00:10:a7:27:51:b8" hangs for about minute, it changes MAC.
here's my lspci:
Quote:
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express
Memory Controller Hub (rev 03)
00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express
PCI Express Root Port (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio
Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev
02)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev
02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 0 2)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Stor age Controller IDE (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation Quadro NVS 110M / GeForce Go 7300 (rev a1)
03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connecti on (rev 02)
04:01.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev b3)
04:01.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 08)
04:01.2 Class 0805: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 17)
04:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 0 8)
04:07.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ether
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: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)
rc.inet1.conf:
Quote:
# Config information for eth0:
IPADDR[0]="84.32.242.208"
NETMASK[0]="255.255.254.0"
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]="84.32.39.199"
HWADDR[0]="00:10:A7:27:51:B8"
# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""
# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""
# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""
# Default gateway IP address:
GATEWAY="84.32.242.1"
# Change this to "yes" for debugging output to stdout. Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"
rest of it default.
Slackware 11, KDE 3.5.4, Qt 3.3.6, Kernel 2.6.21, ASUS Barebone notebook
sorry for such a long post, only wanted to give more information, and for bad english.
You definitely need to straighten out your interface configuration here.
Code:
# Config information for eth0:
IPADDR[0]="84.32.242.208"
NETMASK[0]="255.255.254.0"
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]="84.32.39.199"
HWADDR[0]="00:10:A7:27:51:B8"
Here you are telling it to use both a static IP and DHCP, which obviously it cannot do at the same time. You are then specifying a completely separate IP as the DHCP hostname, which is supposed to be the name of your computer, not an IP.
As for changing the MAC, there should be no reason to change this at all. If you are dual-booting Windows and Linux, or at least had Windows installed on this same machine previously when you were online, then the MAC is going to be the same between them. Even if you had another MAC, just turning the modem off and on a few times would be enough for it to connect with the new MAC.
well, i tryed to use static IP, eth0 showed up and pinged to my IP (that raised my mood ), to all other: 100% loss.
I also used DHCP. Result: connect: Network is unreachable. Maybe i don't know what to specify at DHCP_HOSTNAME. Buti don't have that information, all i used earlyer is:
MAC 00:10:A7:27:51:B8
IP 84.32.242.208
Sub Mask 255.255.254.0
GateWay 84.32.242.1
DHCP Serv 84.32.39.199
DNS Servers 84.32.38.10
84.32.38.11
Quote:
As for changing the MAC, there should be no reason to change this at all. If you are dual-booting Windows and Linux, or at least had Windows installed on this same machine previously when you were online, then the MAC is going to be the same between them.
I don't have windows, i'm posting from other PC, Slackware 10.2 and everything works fine here.
Quote:
Even if you had another MAC, just turning the modem off and on a few times would be enough for it to connect with the new MAC.
If your ISP is using DHCP, then that is what you should have set in inet1.conf, remove all of the other static references. You don't need to specify DNS, gateway, subnet, or IP when using DHCP; that is what DHCP is for.
Quote:
I recieve internet trough LAN card, not modem.
Certainly your NIC must connect to something. Do you have an Ethernet cable that runs between your home and your ISP's offices?
Quote:
On windows it is enough to specify MAC address and it gets all other (though DHCP i guess)
This would seem to indicate that you have been using Windows to connect. If it was not on the current machine, then on what machine was it being used on? Where did this MAC come from that you are trying to duplicate on the Slackware machine, perhaps most importantly, are you inadvertently setting the MAC of multiple computers on the network to the same thing?
yes,i agree that if i'm using DHCP i don't need to specify IP, GW and etc. But what can i? all i can do is USE_DHCP[0]="yes", because i don't know what to specify in DHCP_HOSTNAME. sorry, internet is not my strong part. As you said DHCP server IP do not fit here, it should be String, right? Should it be my computers HostName?
Quote:
Certainly your NIC must connect to something. Do you have an Ethernet cable that runs between your home and your ISP's offices?
Yes i have, my ISP runs cables from the basement, then it comes to switch, one cable goes to me and other to my roommate.
Quote:
This would seem to indicate that you have been using Windows to connect. If it was not on the current machine, then on what machine was it being used on? Where did this MAC come from that you are trying to duplicate on the Slackware machine, perhaps most importantly, are you inadvertently setting the MAC of multiple computers on the network to the same thing?
The situation is like this: we have three computers here, and two lines. One line is roommates (he's using windows) and other line is mine (using slackware 10.2), this spring i bought notebook, so i thought that if i change MAC on my notebook, and set everything like in Slack 10.2, when i plug-in My cable, i should get internet, i'm not using both of them with internet at the same time.
But the most interesting thing, that i would never believe that connect internet to slackware is so difficult, it never gived me so much trouble, usually about 3-5 minutes. What has changed? I fear that when i installed new kernel i didn't biuld-in some packages or modules. As this is the major thing i've changed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.