LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-11-2013, 07:58 AM   #1
michasio
LQ Newbie
 
Registered: Apr 2013
Posts: 7

Rep: Reputation: Disabled
Slackware 14.0 + DHCP


Hello,

May I ask You for help... I have installed Slack 14 on Proliant server...
Also this server will be dedicated for DHCP, Apache and others. But for configuration I have connected this machine to other Slackware with working DHCP server.

New server got IP address from DHCP, but "ifconfig" shows only IPv6.
What Should I do to see IPv4 addrss in summary of "ifconfig " command.

Best Regards
michal
 
Old 04-11-2013, 08:39 AM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.1
Posts: 1,485

Rep: Reputation: 424Reputation: 424Reputation: 424Reputation: 424Reputation: 424
It shows up on my machine with no effort.

Could you post the output that you do get when you run the command?
 
Old 04-11-2013, 09:30 AM   #3
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,551

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
try ifconfig -a
 
Old 04-11-2013, 09:32 AM   #4
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,435

Rep: Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867
also, posting your /etc/rc.d/rc.inet1.conf, where the configuration for your network interfaces resides, could help to understand what's happening.

Last edited by ponce; 04-11-2013 at 09:34 AM.
 
Old 04-11-2013, 01:47 PM   #5
michasio
LQ Newbie
 
Registered: Apr 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hello,

Thanks for reply...

My config file:

Code:
# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]="192.168.4.1"
NETMASK[1]="255.255.255.0"
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=""
ETH1 - my local interface...

Regards
michal
 
Old 04-11-2013, 01:53 PM   #6
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,435

Rep: Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867
you forgot the output from "ifconfig -a"

which interface is connected to the same network of the dhcp server? eth0?

Last edited by ponce; 04-11-2013 at 01:54 PM.
 
Old 04-11-2013, 11:55 PM   #7
michasio
LQ Newbie
 
Registered: Apr 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hello,

today I ask my colleague to prepare screen shot or some photo... I will be at place in next 3 hours.
Please look at photo. Also I asked him to remove static IP from ETH1 and connect link from ETH0 to ETH1.
Maybe there was a problem with hardware... But the same situation... The difference is in the IP address that was assigned.

But I forgot to tell You, I cannot ping any address. I have checked using laptop with Ubuntu (KDE) and everything is OK. I can ping hosts in local network and hosts in Internet. So the network is OK... There is a problem with Slack or hardware...

Regards
michal
Attached Images
File Type: jpg 20130412_063822[1].jpg (270.7 KB, 18 views)
 
Old 04-12-2013, 12:43 AM   #8
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,435

Rep: Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867
from the photo, seems to me that the cable is connected to eth0 and packets are sent and received, so the guess I can do is that the network to which is connected doesn't have a working dhcp server or there's something wrong with the switch/cable, but if you have connected the laptop to the same cable connected to eth0 and it works you can leave this guess out.

the ipv6 address is the one of the network card, is not assigned by any dhcp server.

try to specify a static ip address for the network interface (a gateway too and a nameserver entry in /etc/resolv.conf) and see how it goes, this also because it doesn't make much sense to me to have a server with an interface configured with dhcp (if you at least don't do a reservation first on the dhcp server).

if it doesn't work this way too, I think your guess that eth0 can have some hardware problems can be possible too.
but, notice that in the photo no address is assigned even to eth1, also if you have specified it manually in the configuration you posted, so if you are using the same configuration, you could also probably have problems with your installation.

Last edited by ponce; 04-12-2013 at 12:47 AM.
 
Old 04-12-2013, 12:46 AM   #9
michasio
LQ Newbie
 
Registered: Apr 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
hello,

I have connected to DHCP only to prepare DHCP, Aapache server and others...
After configuration I will establish IP deliverd from ISP. At this moment I'm waiting for IP form ISP.

regards
 
Old 04-12-2013, 12:55 AM   #10
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,435

Rep: Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867
ok, I understand.

please check all of the above, and specify please if you are using a full installation (the only one supported) or you have installed a selected subset of packages (I can't help much in this case).
 
Old 04-12-2013, 01:52 AM   #11
michasio
LQ Newbie
 
Registered: Apr 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hello,

Many thanks for help...
I found problem... my switch and network card in Proliant 580 G2.
On Netgear I had 100Mb/s Full Duplex, but NIC works fine only with 100Mb/s half duplex.
Now everything is working fine... but I've tried to use Cisco 3750 and on Cisco cannot establish connection with half duplex, only full duplex working fine.

Regards
michal
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Instead of Router DHCP Server, Pass DHCP Server control to Slackware orbit Slackware 6 05-11-2009 02:00 AM
slackware and dhcp realcr Linux - Networking 1 09-11-2005 05:35 AM
slackware and DHCP veritas Slackware 5 12-08-2003 07:16 PM
DHCP in Slackware 8.0? digital bots Linux - Networking 6 04-09-2002 03:40 AM


All times are GMT -5. The time now is 04:39 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration