Linux & Reconfiguring Network Adapter

I’m working with my first Linux boxes.
Currently, I’m working w/ “college linux” if it matters and KDE.

I can’t connect to the network or the internet. My router shows that I’m connnected - the light’s on anyway.
I figure I made a mistake configuring things, but I don’t know how to change them.


Hmm. College Linux.

You could try “ifconfig eth0 dhcp” followed by “ifup eth0”, which will set the first NIC to use DHCP and bring it up. If that doesn’t work…

Well, I’d first make sure your NIC is being detected - run ifconfig -a to find out.
This will show the status and configuration of all NICs. Check that it’s properly configured and active.
Depending on what that says, you’ll want to do different things. The internal NIC on my box shows

eth1      Link encap:Ethernet  HWaddr 00:10:B5:0F:02:87
          inet addr:  Bcast:  Mask:
          RX packets:10907172 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13300891 errors:0 dropped:0 overruns:0 carrier:0
          collisions:81847 txqueuelen:100
          RX bytes:3886695307 (3.6 GiB)  TX bytes:522172045 (497.9 MiB)
          Interrupt:11 Base address:0xc00


Thank you for your help.

I figured it out in the mean time. Mostly I had to reboot for the changs to take effect.
However, the supplied info will be helpful.

Just so’s you know, you generally don’t have to reboot to have your modifications take effect (unless you update the kernel). Of course, sometimes it’s just easier to reboot, especially if you’re not familiar with the appropriate commands.

For networking, as Nanoda points out, ifdown, ifup, and ifconfig (which shut down, restart, and display info, respectively) should give you the control you want. As usual, put a –help after the command (or read the man pages) for more.