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.
Hi everybody,
I am using ubuntu-8.04 with kernel 2.6.24-23-generic.I have two interfaces eth0 and eth1,of these interfaces, on eth0 i have configured ipv6 addr. 2001:468::3 and on eth1 dhcp is there.But, when i restart the network by "#/etc/init.d/networking restart" command then im able to get dhcp on eth1 but im not getting static ipv6 address on eth0.I am getting folling information for eth0---->
ifconfig: can not resolve `up': Unknown host
Failed to bring up eth0.
Please HELP me why im getting this message and how to resolve this.(note- I am able to get dhcp on eth0 interface).
Thanks Alot...
YA, i have tried this one already and my /etc/network/interfaces file contents is below----
auto lo
iface lo inet loopback
iface eth1 inet dhcp
auto eth1
#pre-up modprobe ipv6
#iface eth0 inet manual
#up ifconfig $IFACE up
#up ifconfig $IFACE promisc
#up ifconfig $IFACE -arp
#down ifconfig $IFACE down
iface eth0 inet6 static
address 2001:468::3
netmask 64
auto eth0
but still im not getting my interface address as 2001:468::3 on eth0. Help me..
YA, i have tried this one already and my /etc/network/interfaces file contents is below----
auto lo
iface lo inet loopback
iface eth1 inet dhcp
auto eth1
#pre-up modprobe ipv6
#iface eth0 inet manual
#up ifconfig $IFACE up
#up ifconfig $IFACE promisc
#up ifconfig $IFACE -arp
#down ifconfig $IFACE down
iface eth0 inet6 static
address 2001:468::3
netmask 64
auto eth0
but still im not getting my interface address as 2001:468::3 on eth0. Help me..
if you are not in an ipv6 network, you need to change the settings
No, i have intensionally made it for ipv6 network only.that is why i have used 'inet6' instead of 'inet',so now what to do?
And also when i restart my network by "/etc/init.d/networking restart" command then its last stanza shows--ifconfig: can not resolve `up': Unknown host
Failed to bring up eth0. what things should i try so that i would be able to get "2001:468::3" address on eth0 interface.[note:- earliar i was able to get this addr. on eth0 but now suddenly im not getting it]
And also when i restart my network by "/etc/init.d/networking restart" command then its last stanza shows--ifconfig: can not resolve `up': Unknown host
Failed to bring up eth0. what things should i try so that i would be able to get "2001:468::3" address on eth0 interface.[note:- earliar i was able to get this addr. on eth0 but now suddenly im not getting it]
Thanks for Replying...
$ sudo ifdown eth0
$ sudo ifup eth0
I am sure that is what you did from the command line. I usually do not those commands in interfaces. interfaces is a data file not a command file from what little I understand.
I am sure that is what you did from the command line. I usually do not those commands in interfaces. interfaces is a data file not a command file from what little I understand.
I tried above commands from the command line. it gives following outputs whenever im using these commands:
# sudo ifdown eth0
ifconfig: can not resolve `down': Unknown host
# sudo ifup eth0
ifconfig: can not resolve `up': Unknown host
I also tried "ifconfig eth0 down" & "ifconfig eth0 up" but still its waste....Help Me..
I tried this command also, but still im not getting ipv6 static ip as 2001:468::3 on eth0 interface.
Try to add the configuration again to the device using the ip command rather than editing the interfaces file. For the exact syntax read the man page of ip (man ip), because I'm not sure but it should be something like this:
ip address add eth1 local 2001:468::3 scope global
Again I'm not sure about this so please read the man page for correct syntax.
After setting it succesfully, shut down the interface and bring it up again, to see if it works. If it works looking at what got written in your interfaces file should show if you had forgotten something before.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.