Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
ok, so you need to go ahead and configure your network. If you want information on how to do that you'll need to tell us about your setup. Eg dhcp or static? want to use network manager or /etc/sysconfig/? Using gui or command line? Otherwise please check the documentation.
[root@CentOS65x64 huamin]# service NetworkManager stop
Stopping NetworkManager daemon: [ OK ]
[root@CentOS65x64 huamin]# chkconfig NetworkManager off
[root@CentOS65x64 huamin]# ifup eth0
Determining IP information for eth0... failed.
[root@CentOS65x64 huamin]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 08:00:27:BA:06:E6
inet6 addr: fe80::a00:27ff:feba:6e6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:109 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:33374 (32.5 KiB)
[root@CentOS65x64 huamin]# service network status
Configured devices:
lo eth0 eth0_bk
Currently active devices:
lo eth0 eth1 virbr0
[root@CentOS65x64 huamin]#
I just noticed that you have BOOTPROTO=dhcp in your ifcfg-eth0 file. It should be set to none as in the first example in the documentation I linked to.
to eth1 and then put dhcp to that, as now eth1 has not been assigned with the IP properly.
Actually, this OS is running within Virtualbox, on which I've put "internal network" to Adapter 1 and "Bridged adapter" to Adapter 2, and this is why I want a specific IP to eth0.
Before the change of the file to eth0, everything was fine to eth1.
there is nothing to stop you adding ifcfg-eth1. However, I strongly suggest you read chapter 9 of the documentation I linked to. If something there doesn't make sense or seems incomplete please ask here.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.