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 > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-25-2008, 11:33 PM   #1
Ryzol
Member
 
Registered: Jun 2007
Distribution: Ubuntu, Slackware
Posts: 50

Rep: Reputation: 15
DHCP not working on campus network


At home dhcp worked great, assigned me an IP, and I could access places on the network and the internet. However, on campus DHCP doesn't work at all. I tried running dhcpcd with combinations of -r and -S to no success. What should I do to get dhcp working on my campus network?
 
Old 03-25-2008, 11:35 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
What should I do to get dhcp working on my campus network?
Consult the campus network system-administrator.
 
Old 03-26-2008, 12:02 AM   #3
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Campus networks can be annoying that way. On some, you have to register for each MAC (wired and wireless) for each OS.

Sounds like you aren't registered for your campus network. So, yes, talk to the IT department at your school. I'm sure they have a help line.
 
Old 03-26-2008, 12:30 AM   #4
Ryzol
Member
 
Registered: Jun 2007
Distribution: Ubuntu, Slackware
Posts: 50

Original Poster
Rep: Reputation: 15
Are you sure I need to talk to the IT department? DHCP works in Ubuntu (on a different laptop).
 
Old 03-26-2008, 01:07 AM   #5
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
on that laptop (on which dhcp works) do ifconfig ethX . Note down the HWaddr part .

Then in your slackware run
Quote:
pkill dhcpcd
ifconfig ethX down
ifconfig ethX hw ether <HWaddr copied earlier>
ifconfig ethX up
dhclient ethX
dhclient usually works better for me than dhcpcd.
 
Old 03-26-2008, 05:30 AM   #6
febriansasi
LQ Newbie
 
Registered: Sep 2006
Location: /home/febrian/
Distribution: SLACKWARE Current, KDE 3.5.9, JFS on Thinkpad R61
Posts: 24

Rep: Reputation: 17
chmod +x /etc/rc.d/rc.inet1
./etc/rc.d/rc.inet1 start
see what's wrong
probably your LAN card not compiled on kernel
For wifi u can open slackware 12 and laptop thread
 
Old 03-26-2008, 06:36 AM   #7
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
DHCP works in Ubuntu (on a different laptop).
(my emphasis)
different laptop
different nic
different mac
different OS
etc
Quote:
Originally Posted by shadowsnipes
Campus networks can be annoying that way. On some, you have to register for each MAC [snip]for each OS.
(my emphasis)
Any questions?
Quote:
Are you sure I need to talk to the IT department?
<ahem>
<produces megaphone>
<tap tap tap> Is this thing ONNNN <feedback>
<takes a deep breath>
<connection times ou

Last edited by Simon Bridge; 03-26-2008 at 06:37 AM.
 
Old 03-26-2008, 09:08 AM   #8
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
thats why i told him to try out that laptops mac addr. to see if it really is his registering the mac addr that is stopping him.
 
Old 03-26-2008, 06:41 PM   #9
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
yes - spoofing the mac may work, and will rule it out. Registering the other mac is better - not good idea going to sysadmin with a tale of all the cracker tricks you've tried. Talking to sysadmin will be definitive... and solve the issue even if it ain't the mac address.
 
Old 03-28-2008, 08:44 AM   #10
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Shot in the dark:
Are you running 2.6.24.x where x < 4 ?
If so, is this a new problem since upgrading to 2.6.24.x?
If so, then upgrade to 2.6.24.4 - there was a fix in there relating to how the kernel sends DHCP DISCOVER, and it caused some dhcp servers to not hand out ip addresses.
 
Old 04-12-2008, 04:39 PM   #11
Ryzol
Member
 
Registered: Jun 2007
Distribution: Ubuntu, Slackware
Posts: 50

Original Poster
Rep: Reputation: 15
Sorry for long reply, been busy. On your advice I had sent an email to my sysadmin explaining the problem. Two weeks passed and no reply. Then today I felt optimistic, ran dhclient and it worked.

Why would spoofing my MAC address be considered cracking? I mean I'm supposed to have access to my campus network and I'm not being malicious.

My kernel is 2.6.21.5.
 
Old 04-12-2008, 06:56 PM   #12
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Why would spoofing my MAC address be considered cracking?
I din't say that - I said that the sysadmin may frown upon it.

Spoofing a mac address is a cracking technique. It is used to gain you access where you would not otherwise be allowed.

Quote:
I mean I'm supposed to have access to my campus network and I'm not being malicious.
From what was discussed, you are supposed to have access to your campus network from a registered computer. We may disagree with, even despise, that policy, but it is the one in place. At least, that was the speculation in previous posts.

While intent counts for a lot, the sysadmin may feel that you are circumventing campus IT security. You will probably find you have some contractual obligations concerning that and there are usually quite stiff penalties involved with breaking them.

Much better to let the sysadmin know what you want to do - it is certain that the issue has been considered.

Quote:
I had sent an email to my sysadmin
Don't e-mail - do you have any idea how many emails these guys get each day? Go to that worthies office and bang on the door.

Quote:
I felt optimistic, ran dhclient and it worked.
Perhaps the lease on the old machine's access expired. (Try the old machine.) Perhaps sysadmin got your email and did something after all? May be worth clearing up.
 
Old 04-13-2008, 02:33 PM   #13
Ryzol
Member
 
Registered: Jun 2007
Distribution: Ubuntu, Slackware
Posts: 50

Original Poster
Rep: Reputation: 15
I had emailed him before and had gotten a timely response so I didn't see a reason to see him in person. I know he made at least one change, the instructions to register for linux is now a bash script instead of a .exe... Note that to register you first need to be connected to the LAN i.e. dhcp needs to be working.

So last night cable (tv + broadband) crashed for everyone in the area. Internet is currently up, and it works in my room (tested on friend's computer), but I can't connect on my slackware computer. The only thing I've changed in the interim is I commented out everything in /etc/inetd.conf. dhclient gives an error saying I'm already registered/have an address, so I don't think the problem is with that.

Here is ifconfig:
Code:
eth0      Link encap:Ethernet  HWaddr 00:08:74:E7:C7:F1  
          inet6 addr: fe80::208:74ff:fee7:c7f1/64 Scope:Link
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2792 errors:0 dropped:0 overruns:1 frame:0
          TX packets:121 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:323451 (315.8 KiB)  TX bytes:12778 (12.4 KiB)
          Interrupt:10 

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:85 errors:0 dropped:0 overruns:0 frame:0
          TX packets:85 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:8482 (8.2 KiB)  TX bytes:8482 (8.2 KiB)
 
Old 04-15-2008, 03:57 PM   #14
Ryzol
Member
 
Registered: Jun 2007
Distribution: Ubuntu, Slackware
Posts: 50

Original Poster
Rep: Reputation: 15
Grr, I'm really not sure what's wrong with my network connection. It intermittently stops working. When I try to ping I get an unknown hostname. When I run dhclient it tells me can't bind to dhcp address, address already in use. Ideas?
 
Old 04-16-2008, 11:01 PM   #15
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
This is your home connection?
Can you still connect to the campus network?

Sounds like a different problem, and needs a new thread.
 
  


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
Campus Network Connection Dying knowledgeispwr Linux - Networking 5 08-29-2006 08:03 PM
Network/dhcp not working with suse10 Indkoeti Linux - Networking 3 10-24-2005 07:32 AM
Server on campus network, DNS? mondaypickle Linux - Networking 3 09-06-2005 12:04 PM
Sharing Windows printer on campus network jrdioko Linux - Networking 0 08-27-2004 08:37 PM
Connect a Laptop at a campus Network alekoos Linux - Networking 2 04-26-2004 07:30 PM

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

All times are GMT -5. The time now is 04:27 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
Open Source Consulting | Domain Registration