LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-22-2006, 06:09 PM   #1
erics_acvw
LQ Newbie
 
Registered: Nov 2004
Location: Sparks, NV
Distribution: RH7.3, RH8.0, FC10, COS4.5
Posts: 25

Rep: Reputation: 16
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
 
Old 10-22-2006, 07:28 PM   #2
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
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]?
 
Old 10-22-2006, 08:12 PM   #3
erics_acvw
LQ Newbie
 
Registered: Nov 2004
Location: Sparks, NV
Distribution: RH7.3, RH8.0, FC10, COS4.5
Posts: 25

Original Poster
Rep: Reputation: 16
Good eyes. That was it. Thank you.

Regards,
Eric S
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can a NIC have both, IPv4 and IPv6, address simultaneously?? b0nd Linux - Networking 2 06-04-2006 02:18 PM
ipv4 to ipv6 anant_wsu Linux - Networking 1 01-03-2006 04:28 PM
IPv4 IPv6 And routers cranium2004 Linux - Networking 2 02-02-2005 10:12 AM
IPv6 to IPv4 thomjakub *BSD 1 03-06-2004 01:17 AM
ipv4 vs. ipv6 radix Linux - Security 2 09-17-2003 01:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration