Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
10-22-2006, 06:09 PM
|
#1
|
LQ Newbie
Registered: Nov 2004
Location: Sparks, NV
Distribution: RH7.3, RH8.0, FC10, COS4.5
Posts: 25
Rep:
|
I get IPV6 address and no IPV4. Why?
Hello,
I'm using CentOS 4.4. On boot or './network restart' my eth0 gets an IPV4 address but eth1 does not. I can assign an IPv4 address by 'ifconfig eth0 69.109.23.9' but that's not permanent. Config files are similar aside from the obvious. Anyone know the solution to this?
Regards,
Eric S
[init.d]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:05:5D:33:A9:71
inet addr:192.168.1.9 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::205:5dff:fe33:a971/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:663 errors:0 dropped:0 overruns:0 frame:0
TX packets:1426 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:58738 (57.3 KiB) TX bytes:181435 (177.1 KiB)
Interrupt:10 Base address:0xe800
[init.d]# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:50:BA:BF:FF:C1
inet6 addr: fe80::250:baff:febf:ffc1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:243 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:16000 (15.6 KiB) TX bytes:756 (756.0 b)
Interrupt:11 Base address:0xec00
/etc/sysconfig/network-scripts/eth0:
# D-Link System Inc RTL8139 Ethernet
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.1.9
NETMASK=255.255.255.0
GATEWAY=192.168.1.5
HWADDR=00:05:5D:33:A9:71
NETWORK=192.168.1.0
/etc/sysconfig/network-scripts/eth1:
# D-Link System Inc RTL8139 Ethernet
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=static
ADDR=69.109.23.9
NETMASK=255.255.255.248
GATEWAY=69.109.23.14
HWADDR=00:50:BA:BF:FF:C1
NETWORK=69.109.23.8
/etc/sysconfig/network:
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=server.eswebs.com
|
|
|
10-22-2006, 07:28 PM
|
#2
|
Member
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435
Rep:
|
Quote:
Originally Posted by erics_acvw
/etc/sysconfig/network-scripts/eth1:
# D-Link System Inc RTL8139 Ethernet
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=static
ADDR=69.109.23.9
NETMASK=255.255.255.248
GATEWAY=69.109.23.14
HWADDR=00:50:BA:BF:FF:C1
NETWORK=69.109.23.8
|
Change "ADDR" above to "IPADDR".
Also, shouldn't those filenames be
/etc/sysconfig/network-scripts/ifcfg-eth[0|1]?
|
|
|
10-22-2006, 08:12 PM
|
#3
|
LQ Newbie
Registered: Nov 2004
Location: Sparks, NV
Distribution: RH7.3, RH8.0, FC10, COS4.5
Posts: 25
Original Poster
Rep:
|
Good eyes. That was it. Thank you.
Regards,
Eric S
|
|
|
All times are GMT -5. The time now is 04:16 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|