Network 2 computers with crossover cable uisng IPv6
Linux - NetworkingThis 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.
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.
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?
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.
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.
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
*
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)?
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.
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
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)?
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.
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
---------------------------------------------------------------------------------
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.
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).
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 ~]$
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.