Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
yes i am sure that the IP is not listed along with the other interface information.
i am working within a virtual machine in vmware server and i notice that i have to switch from bridged mode back to custom bridged mode when trying to boot to a static IP. after i reboot enough times it comes up with the correct ip and is reachable. in DHCP mode i cant tell what it is doing. all i know is that when it comes up in DHCP mode there is no IP listed with the rest of the ip settings. this must mean that DHCP is not setting my ip address.
i was just wondering if there was a netcat command or some other tool that i could use to determin the ip that i've been assigned.
if you all are correct, i DHCP is not even assigning me one.
i will try and post my exact ifconfig -a results asap.
virtual machines can't affect this, that would taint virtual machines at the base level... the host operating system and the network stack inside it, should have no idea whatsoever that it's actually not on a physical machine. it seems pretty clear that there is no ip assigned, maybe suggesting some sort of vmware bridging issue if the host pc is getting dhcp just fine.
yes i am sure that the IP is not listed along with the other interface information.
i am working within a virtual machine in vmware server and i notice that i have to switch from bridged mode back to custom bridged mode when trying to boot to a static IP. after i reboot enough times it comes up with the correct ip and is reachable. in DHCP mode i cant tell what it is doing. all i know is that when it comes up in DHCP mode there is no IP listed with the rest of the ip settings. this must mean that DHCP is not setting my ip address.
i was just wondering if there was a netcat command or some other tool that i could use to determin the ip that i've been assigned.
if you all are correct, i DHCP is not even assigning me one.
i will try and post my exact ifconfig -a results asap.
thanks to all.
do :
Code:
su
(password)
dhcpcd ethX #(replace X by the interface which contacts your dhcp server 0..n)
ifconfig ethX #(same X offcourse)
exit
and you'll see the new address.
after you succed getting ip, a little script that parse it is easy, for me (a hardcoded noobie script though) is :
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.