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.
ektoric is right. Pump is the one I was using. When I launched it, my eth cards would startup again like they did when I first booted the machine. I think my logs also said the external interface was configured properly (not at machine right now).
ektoric, I assume that 255.255.255.255 is the subnet, right? If it is, how do I get the IP? (If you know...)
BTW, I beat you to it! All my internal machines use dhcp to get their ip's, dns server, and internet gateway settings. All from my tiny little 233 linux box.
mcleodnine - I will try man dhcpd when I get home.....
no, 255.255.255.255 *is* the DHCP server's IP address, so to speak. The point of DHCP is this:
Client: Whoa! Just woke up.. Where Am I?? What's my name? how I do talk to anyone? I don't know anything at all, but I do know this *well known IP address that I can query* to find out some info.
Server: My true IP address is *.*.*.* but I also listen in on anyone who talks over this *well known IP address* so I know when someone needs my services.
If you didn't know that this "well known IP address" is, you wouldn't be able to ask anyone because you don't have a valid IP address yet to talk on the network. So, the DHCP protocol is always at IP address 255.255.255.255... which begs the question, why doesn't your app know that already.
(heheh... DHCP protocol.. heheh.. kinda like "network NIC card" hahah)
Ok, then I got another question for you. On any of my windoze machines, if I run the command "ipconfig /all" it will return the real ip of my dhcp server. Is this just a thing that micro$oft does, or is there a command (windoze or linux) that will ask for the real ip of the dhcp server?
Or would it just be easier for once to put the windoze machine with the cable modem and find out the ip address that way (dont want to because I would have to physically move the computers around but I will if I have to)?
unfortunately, like I said, I am using dhcpcd, not pump.
try "pump -i eth0 --status" and see what it says.
if you're using dhcpcd, i could tell you to peek at /etc/dhcpc/dhcpcd-eth0.info and look at the DHCPSID field.
I'm sorry for the late post, but that line gave me all the info I needed. I got the dhcp servers and when the lease was up. Thank you for leting me know about that!
Where <device> = the network device talking to the ISP
Eg.
cat /etc/dhcpc/hostinfo-eth0
This will give you amongst other thingyour current IP address, name of DHCP Server
[root@dhcp-209-134470 cdn]# cat /etc/dhcpc/hostinfo-eth1
LEASETIME=3600
RENEWALTIME=1800
REBINDTIME=3150
IPADDR=82.37.77.29 Your current IP
NETMASK=255.255.248.0
BROADCAST=255.255.255.255
HOSTNAME=dhcp-209-134470 DHCP Server Name
ROUTER=82.37.72.1 DHCP Server IP
The above is what i get on my machine - note that my Internet connection is on eth1
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.