LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 12-05-2005, 09:39 AM   #1
q14526
LQ Newbie
 
Registered: Dec 2005
Location: Rochester, NY
Distribution: fedora
Posts: 18

Rep: Reputation: 0
Unhappy Network 2 computers with crossover cable uisng IPv6


Hi,
I am new to networking, my work project is to test and learn about IPv6, I have to connect 2 computers via crossover cable and perform ftp and telnet from one to the other using IPv6.
Yes, I have search and read all about IPv6 on google and this forum for the last 2 weeks.
I set up 2 PCs with Fedora 4.

1. AS a start up, using the Newbie's Guide To Small Home LAN (it is fantastic! guide)I can ping and ftp between 2 PCs but was not be able to telnet (using IPv4)(Error: connection refused). Can someone tell me what I am missing ?

2. My real need is setup so that it is using IPv6 standard.
Is there equivalent of address 192.168.xxx.xxx in IPv6 as in IPv4 ?

if "ech077" (author of the Newbie's guide to small home LAN) can add to his IPv4 guide that would be a very educational publication for every newbie in the world.

Can some one please tell me how to network 2 computers with crossover cable using IPv6?

Thank you all for your time.
 
Old 12-05-2005, 10:20 AM   #2
cuiq
Member
 
Registered: Aug 2004
Location: Philly
Distribution: Debian Lenny, FreeBSD
Posts: 577

Rep: Reputation: 30
Here's the tut. Which by the way is located in the tutorial section of this very site.

http://www.linuxquestions.org/linux/...Small_Home_LAN

There are others listed under networking for your further perusal.



Peace V
 
Old 12-05-2005, 12:44 PM   #3
q14526
LQ Newbie
 
Registered: Dec 2005
Location: Rochester, NY
Distribution: fedora
Posts: 18

Original Poster
Rep: Reputation: 0
Hi cuiq,
Thank for the reply. But as I said I've already read and used this guide (and many many more articles). This guide is only for IPv4. I need help to do the same thing for IPv6.
I appreciate your reply. Please give help on IPv6.

Thanks.
 
Old 12-05-2005, 01:44 PM   #4
cuiq
Member
 
Registered: Aug 2004
Location: Philly
Distribution: Debian Lenny, FreeBSD
Posts: 577

Rep: Reputation: 30
Sorry for not reading your post throughly.
 
Old 12-05-2005, 01:57 PM   #5
cuiq
Member
 
Registered: Aug 2004
Location: Philly
Distribution: Debian Lenny, FreeBSD
Posts: 577

Rep: Reputation: 30
found this book, which does not seem to list a difference in setup between ipv4 ipv6 other than that ipv6 became available in the 2.4 kernel and above.

"6. Kernel configuration
6.1. If using iptables

Iptables is actually a user interface tool and depends on the kernel implementation called netfilter. Netfilter includes support only for IPv4 and IPv6, and does not filter any other protocols. Hence if your system should run something like IPX, remember that the protocols other than IPv4 and IPv5 are not going to be filtered according to the iptables rules. User kerne 2.4.18 or above, if possible to have all the new features of netfilter.

Install the iptables software on your system (apt-get install iptables). Once you know that your kernel is configured with netfilter support, you need not worry about it at all. Just remember that iptables need the kernel support from netfilter.

Check if your kernel is configured for supporting iptables. Though most distributions include this support by default, do this quick test as root.

bash# modprobe ip_tables
bash# lsmod | grep ip_tables

If any of the above commands give an error or ip_tables doesn't show up in module listing, you must enable these options in the kernel configuration using make menuconfig or make xmenuconfig

*

Code maturity-level options for development and/or incomplete code/drivers
*

Network packet filtering in Networking options.
*

IP: Netfilter Configuration iin Networking options

select all these options as modules."


http://newbiedoc.sourceforge.net/net...CONFIGIPTABLES


Peace V
 
Old 12-06-2005, 08:44 AM   #6
q14526
LQ Newbie
 
Registered: Dec 2005
Location: Rochester, NY
Distribution: fedora
Posts: 18

Original Poster
Rep: Reputation: 0
Network 2 PCs using crossover cable for IPv6

Hi cuiq,

Once again I appreciate your response.
Yes, I do have ip_tables module running. But I am not sure what I have to do with it.
Here is what I have done so far (all PCs instaled with FC4 Server, all options):
PC#1: inet 192.168.10.1 brd 192.168.10.255 scope global eth0:1
inet6 2001::c0a8:a01/64 scope global
inet6 fec0::c0a8:a01/64 scope site
inet6 fe80::2d0:b7ff:fe58:6bb6/64 scope link

PC#2: inet 192.168.10.2 brd 192.168.10.255 scope global eth0:1
inet6 2001::c0a8:a02/64 scope global
inet6 fec0::c0a8:a02/64 scope site
inet6 fe80::2d0:b7ff:fe57:eca0/64 scope link

1. The inet addresses is setup for crossover cable using IPv4: ping and ftp work but NOT telnet
with error "connection refused". Do you know why?
2. The inet6 local link addresses which begin with fe80 are setup by FC4: ping6 works but ftp and
telnet NOT work (error: unknown host and connection refused respectedly)
3. The inet6 local site addresses which begin with fec0 are added by me: ping6 works but ftp and
telnet NOT work (error: unknown host and connection refused respectedly)
4. The inet6 local global addresses which begin with 2001 are added by me: ping6 works but ftp
and telnet NOT work (error: unknown host and connection refused respectedly)

So I have all types of IPv6 addresses exist (or added to)in my setup but only ping6 is working. Could you please tell me what I am missing.

Is there any way I can get in touch with ech077 (author of the Newbie's guide to small home LAN)?

Best regards.
 
Old 12-06-2005, 10:12 AM   #7
cuiq
Member
 
Registered: Aug 2004
Location: Philly
Distribution: Debian Lenny, FreeBSD
Posts: 577

Rep: Reputation: 30
echo77 can be reached at

neenad AT gmail dot com

This is in the "CONTACT ME" section of the tutorial.

Peace V
 
Old 12-06-2005, 03:19 PM   #8
q14526
LQ Newbie
 
Registered: Dec 2005
Location: Rochester, NY
Distribution: fedora
Posts: 18

Original Poster
Rep: Reputation: 0
Hi cuiq,
I hope that my request to contact with echo77 did not offend you. I am desperate to do my work.
I apologize for that inappropriate question. I have not send him/her any email yet.

I have solved one issue: telnet from PC1 to PC2 using IPv4
FC4 installation did not install telnet-server.rpm and xinetd.rpm
These 2 RPMs must be downloaded from rpmfind.net and run rpm command.
Then I must edit /etc/xinetd.d/telnet: set disable = NO
and edit /etc/xinetd.d/eklogin: set disable = YES
and then restart xinetd. Now I can telnet from one to the other system (IPv4 only).

Now I will have to do more reading on how to do the same with IPv6 over crossover cable.
I suspect it have something to do with the first 2 byte block of the IPv6 (either global or site) address (as 192.168.xxx.xxx in IPv4).

Once again, I apologize for my question. Please help me if you can.

Best regards.
 
Old 12-06-2005, 09:33 PM   #9
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Try ssh.

ssh -6 <ipv6 address>

If this doesn't work, pick a machine (doesn't matter which one) and as root, edit /etc/radvd.conf. Make it look something like this.

Code:
interface eth0
{
        AdvSendAdvert on;
        MinRtrAdvInterval 30;
        MaxRtrAdvInterval 100;
        prefix fec0::/64
        {
                AdvOnLink on;
                AdvAutonomous on;
                AdvRouterAddr on;
        };

};
Then execute
Code:
# radvd -d 4 &
Your hosts should autoconfigure with IPv6 site-local (fec0::/64) addresses. Then try ssh -6.
 
Old 12-07-2005, 02:03 PM   #10
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
I forgot to mention that I don't think the Fedora version of telnetd (telnet-server-0.17-35.i386.rpm) is IPv6 compatible. However, vsftpd (vsftpd-2.0.3-1.i386.rpm) *is* IPv6 compatible, at least if run outside xinetd. I haven't been successful running it inside xinetd, but I haven't tried very hard either.

As you can see below, I start telnetd and vsftpd, then use netstat to view listening ports. telnetd is listening for an IPv4 (only) connection, while vsftpd (and sshd) are listening for IPv6 connections.

Code:
[root@petrel local]# /usr/sbin/in.telnetd -debug &
[1] 9378
[root@petrel local]# /usr/sbin/vsftpd &
[2] 9379
[root@petrel local]# netstat --protocol=inet,inet6 -pnl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
tcp        0      0 0.0.0.0:23                  0.0.0.0:*                   LISTEN      9378/in.telnetd
tcp        0      0 :::21                       :::*                        LISTEN      9379/vsftpd
tcp        0      0 :::22                       :::*                        LISTEN      1790/sshd
1709/portmap
 
Old 12-07-2005, 02:05 PM   #11
q14526
LQ Newbie
 
Registered: Dec 2005
Location: Rochester, NY
Distribution: fedora
Posts: 18

Original Poster
Rep: Reputation: 0
Hi jcliburn,
The ssh -6 <ipv6Addr> command works. There seems to be a disconnection between the Network Configuration GUI and setting IP address in a console.

In a console, we can just add an address using "ip -6 addr add feco::x:y:z" and never have to enter subnet mask.

I have tried to use Network Configuration GUI, create a new device profile with address fec0::c0a8:a01 (with or without /64) and subnet mask is ffff:ffff:ffff:ffff:0000:0000:0000:0000, when I activate that profile, it fails because subnet mask is wrong and error: some other host already uses this address(no other profile is activated). I have played around this device profile setting all this morning but can not get to a good understanding of this network configuration tool.

My questions are:
1. Should I install radvd anyway ? (FC4 did not installed it)
2. Should I just add ipv6 address using console and ignore the Network Configuration GUI which is activated for ipv4 device address 198.162.10.x ?
3. What is the correct subnet mask for fec0::c0a8:a0x/64 (crossover cable)?

Thank you very much for you help.

Best regards.
 
Old 12-07-2005, 02:37 PM   #12
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
The easiest thing to do is install and run radvd, that way you don't have to worry about manually configuring your interfaces.

I've never tried to use the NetworkManager GUI for configuring IPv6 addresses, so I can't help you there.

For site-local addresses (fec0/10), I think the subnet mask *might* be 0000:0000:0000:ffff:0000:0000:0000:0000 (according to _Unix Network Programming, Volume 1, 3rd edition_ at page 881), but again, I use autoconfiguration and don't (thus far) have to worry about subnet masks.
 
Old 12-07-2005, 05:55 PM   #13
cuiq
Member
 
Registered: Aug 2004
Location: Philly
Distribution: Debian Lenny, FreeBSD
Posts: 577

Rep: Reputation: 30
I'm not offended. This forum is about getting and receiving help. If I can't help you, then I should be willing to direct you to the help you need.

I hope the others were able to help you resolve your issue.



Peace V
 
Old 12-09-2005, 02:53 PM   #14
q14526
LQ Newbie
 
Registered: Dec 2005
Location: Rochester, NY
Distribution: fedora
Posts: 18

Original Poster
Rep: Reputation: 0
Hi jcliburn and cuiq,
I have done as you said:
1. Installed and run radvd and use the GUI just to deactivate/activate one of the 2 device profile (either DHCP to my work network or using crossover cable for my IPv6 experiment).
2. I also install and run vsftpd-2.0.3-1.i386.rpm

Here is my "netstat --protocol=inet, inet6 -pnl" screen log:
---------------------------------------------------------------------------------
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:32769 0.0.0.0:* LISTEN 1441/rpc.statd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1423/portmap
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 31695/vsftpd
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN 13690/xinetd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 9901/cupsd
tcp 0 0 127.0.0.1:5335 0.0.0.0:* LISTEN 1726/mDNSResponder
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1841/sendmail: acce
tcp 0 0 :::22 :::* LISTEN 1809/sshd
udp 0 0 0.0.0.0:32768 0.0.0.0:* 1441/rpc.statd
udp 0 0 0.0.0.0:769 0.0.0.0:* 1441/rpc.statd
udp 0 0 0.0.0.0:68 0.0.0.0:* 31511/dhclient
udp 110400 0 0.0.0.0:5353 0.0.0.0:* 1726/mDNSResponder
udp 0 0 0.0.0.0:111 0.0.0.0:* 1423/portmap
udp 0 0 0.0.0.0:631 0.0.0.0:* 9901/cupsd
---------------------------------------------------------------------------------

and here is my ip addr show:

---------------------------------------------------------------------------------
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:d0:b7:57:ec:a0 brd ff:ff:ff:ff:ff:ff
inet 13.231.135.18/22 brd 13.231.135.255 scope global eth0
inet 192.168.10.1/24 brd 192.168.10.255 scope global eth0:1
inet6 fec0::c0a8:a01/64 scope site
valid_lft forever preferred_lft forever
inet6 fe80::2d0:b7ff:fe57:eca0/64 scope link
valid_lft forever preferred_lft forever
3: sit0: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
---------------------------------------------------------------------------------

So far only ssh is working with IPv6 "fec0" address.
Questions:
1. From the netstat log, why only sshd listen to IPv6 address (double colon)?
Your vsftpd does but why my vsftpd does not ? It is the same release as you said. What did I do wrong
2. Is that true that Fedora telnet-0.17-35 and telnet-server-0.17-35 will not work with IPv6 ?
3. Run /usr/sbin/in.telnetd & ---> error= bind:Address already in use -> Exit 1
4. Run /usr/sbin/vsftpd & ---> error=500 OPPS: could not bind listening IPv4 socket

So many things are not working, what should I do. Please help.

Best regards.
 
Old 12-09-2005, 07:02 PM   #15
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Okay, I can't get vsftpd to work within xinetd; I get the same error you do. However, I can get it to work standalone, which is the recommended method in the vsftpd manpage.

To run vsftpd as a standalone daemon, add the following line to the bottom of /etc/vsftpd.conf

listen=YES

Then start vsftpd from the command line

vsftpd &

Now for telnetd, I can't get it to work standalone, but I can get it to work IPv6 within xinetd. (Go figure...)

Make your /etc/xinetd.d/telnet file look like this
Code:
service telnet
{
        flags           = IPv6
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/sbin/in.telnetd
        log_on_failure  += USERID
        disable         = no
}
Then execute

/sbin/service xinetd restart

Hope this helps.

Here's my output from the server (hostname petrel).

Code:
[root@petrel ~]# netstat --proto=inet6 -pnl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
tcp        0      0 :::21                       :::*                        LISTEN      3344/vsftpd
tcp        0      0 :::22                       :::*                        LISTEN      1628/sshd
tcp        0      0 :::23                       :::*                        LISTEN      3006/xinetd

[root@petrel ~]# /sbin/ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:B0:D0:82:6D:DA
          inet addr:192.168.1.6  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fec0::2b0:d0ff:fe82:6dda/64 Scope:Site
          inet6 addr: fe80::2b0:d0ff:fe82:6dda/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9505 errors:0 dropped:0 overruns:1 frame:0
          TX packets:6050 errors:0 dropped:0 overruns:0 carrier:1
          collisions:0 txqueuelen:1000
          RX bytes:891381 (870.4 KiB)  TX bytes:1304916 (1.2 MiB)
          Interrupt:5 Base address:0xec80
Here's some sample sessions from the client (hostname osprey).

Code:
[jcliburn@osprey ~]$ telnet fec0::2b0:d0ff:fe82:6dda
Trying fec0::2b0:d0ff:fe82:6dda...
Connected to fec0::2b0:d0ff:fe82:6dda.
Escape character is '^]'.
Fedora Core release 4 (Stentz)
Kernel 2.6.14-1.1644_FC4 on an i686
login: jcliburn
Password:
Last login: Fri Dec  9 18:50:11 from 0.0.0.0
[jcliburn@petrel ~]$

[jcliburn@osprey ~]$ ftp fec0::2b0:d0ff:fe82:6dda
Connected to fec0::2b0:d0ff:fe82:6dda (fec0::2b0:d0ff:fe82:6dda).
220 (vsFTPd 2.0.3)
Name (fec0::2b0:d0ff:fe82:6dda:jcliburn):
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bye
221 Goodbye.
[jcliburn@osprey ~]$
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
internet connection sharing between two computers using crossover cable farnell_mark Debian 1 06-04-2005 04:44 PM
Can I network two computers with a USB A-A cable? pembo13 Linux - Networking 3 01-08-2005 04:03 PM
Trouble networking two Linux computers (via crossover cable) lrt2003 Linux - Networking 3 06-29-2004 09:06 AM
network with crossover cable burkie Linux - Newbie 4 01-13-2004 09:29 PM
Network using crossover cable Great Mister Linux - Newbie 7 12-16-2003 07:57 PM


All times are GMT -5. The time now is 07:37 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration