[SOLVED] I am still having a problem with assigning an IP address....
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.
I am still having a problem with assigning an IP address....
I am trying to assign an interface eth0:101 with an IP address of 10.217.y.z. Where y and z is my base address. This is for my Linux class that is due by 12:00PM. My instructor approves of this forum so that's cool. I have tried using the command "ip addr add dev eth0:101 local 10.217.y.z" and it takes it but when I do an ifdown eth0:101 I get the error message "ifdown <device name>" so in other words it is not recognizing the device name. So what can I do to resolve that? What am I doing wrong? I will give credit to anyone who can help me out. I have been at this for hours. I need any help I can get. Thanks guys.
ifconfig eth0:101 down
Don't use ifdown for virtual interface
Note: If you don't use ongte suggestion, you will have problem when linux box is rebooted. Your command only active at runtime.
I have never really played with Red Hat systems but I have never seen eth0:101 on ANY Linux based systems. I have seen the command of 'ifdown eth0' or even '/sbin/ifdown eth0'. The ifdown may not be in your user's PATH or might not have the rights to execute the ifdown command.
I figured it out, it was right there in front of me with lecture notes must have not seen it clearly...lol. But the correct command was "ip addr add dev eth0 label eth0:101 local 10.217.y.z/8" which was the specified network mask/netmask lol. Thanks for all your help though guys i really appreciate it. So I just didn't add a label to it...lol.
I'd like to say though forums are really really helpful in case if I was working in an actual business environment, because this forum has really helped me to expand my knowledge on Linux/Unix Operating Systems. Because I do enjoy this class and learning about a completely different OS than WINDOWS BLAH...lol. Thanks again every1. Like all of my Networking and Systems instructors tell me use google because it can be your best friend as well as forums as an IT Support Technician/Systems Administrator/Network Administrator. YOU GUYS ROCK THANK YOU AGAIN A MILLION TIMES...lol.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.