LinuxQuestions.org
Help answer threads with 0 replies.
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 01-06-2008, 06:33 PM   #1
violagirl23
Member
 
Registered: Aug 2007
Location: Michigan
Distribution: Gentoo, Arch
Posts: 33

Rep: Reputation: 15
IPv4 vs. 1Pv6?


How can you tell which one you have? Is it safe to assume you have IPv4 if you've done no extra configuration?
I just hooked up my router, got wireless drivers, and was good to go. Does it have to do with the length of your IP address?
(Sorry for the dumb question, but it turns out I actually have to know this to configure something!)
 
Old 01-06-2008, 06:44 PM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,233

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
Yes, the length of the IP address is 128 instead of 32 bits long. You probably have support for both versions installed and running.

If you want to know which is running, here are some commands to determine what you have.

Open a konsole. Switch to root. ( you have to know the root password ).

Run the command '/sbin/ifconfig' ( without the quotes ). This will display severel lines of information for each interface you have. The second line will show your IP address.

To see if you have ipv6 support loaded, run the command 'lsmod' and look through the oputput. IPv6 will show up in the list of inserted modules; probably.
 
Old 01-06-2008, 07:22 PM   #3
violagirl23
Member
 
Registered: Aug 2007
Location: Michigan
Distribution: Gentoo, Arch
Posts: 33

Original Poster
Rep: Reputation: 15
ifconfig outputs on the second line for wlan0 the static ip I set up for this computer on the network.
However, the third line does start with "inet6 addr:" and the lsmod DID show ipv6, so should I thus assume I have ipv6? ^_^
 
Old 01-07-2008, 09:47 AM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,233

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
Could you please cut and paste the output so I can have a look? Is this a home environment, a school or a business?

Since it is wireless, do you connect to more that one WAP's ( wireless access points ) ?
 
Old 01-07-2008, 07:42 PM   #5
violagirl23
Member
 
Registered: Aug 2007
Location: Michigan
Distribution: Gentoo, Arch
Posts: 33

Original Poster
Rep: Reputation: 15
Nope, just one access point. ^_^
Code:
wlan0     Link encap:Ethernet  HWaddr 00:05:5D:99:89:F4  
          inet addr:192.168.1.137  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::205:5dff:fe99:89f4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4282 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4174 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1910609 (1.8 Mb)  TX bytes:526457 (514.1 Kb)
          Interrupt:11 Memory:f3efef00-f3eff000
 
Old 01-07-2008, 08:05 PM   #6
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
Your IPV6 address appears to be:
Code:
fe80::205:5dff:fe99:89f4/64
Since you do not have an IPV6 router on your network your IPV6 module has created a local link address for you.

In the future when the there is universal support for IPV6 ... your PC will be ready. Right now you can ignore it ... you can even disable the IPV6 module from loading.
 
Old 01-08-2008, 10:04 AM   #7
charlie0313
Member
 
Registered: Jan 2008
Location: Dunn Loring, VA
Distribution: Slackware 12.0, Ubuntu 8.04
Posts: 47

Rep: Reputation: 15
Question no IPv4

Since this thread talks about IPv4 and 6 I was wondering if anyone could help me with a problem I've been having with my wireless. The driver is loading and working. wlan0 is configured and up. But I have an IPv6 adress, My wireless router doesn't support that. I was wondering if anyone knew what you had to do to get an IPv4 adress, so that when I run ifconfig I see INET: 192.168.1.x ... I'm pretty sure its a one liner either for ifconfig or iwconfig. Thanks.
 
Old 01-08-2008, 07:19 PM   #8
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,233

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
charlie0313,

It is best to start your own thread instead of "highjacking" another thread. Your problem may not get the exposure it deserves.

To try and help, some systems will assign an IPv6 address if one is not assigned. I'm not sure why, but they do.

IPv4 addresses can be assigned by a DHCP server, because of a DHCP request. Or, you can assign one statically. DHCP servers can be run in linux, or a lot of routers can be configured to do the task.

To help you out, I need to know more about your network. Could you tell us the make and model of your router. Do you know how to configure it? Do you know how to display current configuration?

Yes, you can use the command ifconfig to assign an address. See the man page for ifconfig, or ask if you can't figure it out. If you assign an IP address with ifconfig, it will last until your next boot. So you need to make it permanent.

There are also configuration files to edit. I'm running Mandriva 2008. The file to edit is /etc/sysconfig/network-scripts/ifcfg-eth0. Other distros would probably use a different file, and in your case the file will likely have wlan0 in the name. Some distros have GUI tools to make it easier.

What distro are you running? Have a look around your desktop for any tools to help.
 
  


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
IPv4 not there??? Goblin82 Linux - Networking 4 03-03-2006 07:07 PM
ipv4 to ipv6 anant_wsu Linux - Networking 1 01-03-2006 04:28 PM
Ipv4 reverse Tomanas Slackware 2 07-26-2005 04:29 AM
ipv4 options odious1 Linux - Security 12 09-10-2004 10:27 PM
IPv4 Question RecoilUK Linux - Networking 4 11-04-2001 05:13 PM

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

All times are GMT -5. The time now is 09:34 AM.

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