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? :confused: Thank you all for your time. |
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 |
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. |
Sorry :o for not reading your post throughly.
|
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 |
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. |
echo77 can be reached at
neenad AT gmail dot com This is in the "CONTACT ME" section of the tutorial. Peace V |
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. |
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 Code:
# radvd -d 4 & |
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 & |
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. |
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. |
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 |
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. |
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 /sbin/service xinetd restart Hope this helps. Here's my output from the server (hostname petrel). Code:
[root@petrel ~]# netstat --proto=inet6 -pnl Code:
[jcliburn@osprey ~]$ telnet fec0::2b0:d0ff:fe82:6dda |
I found the solution to the vsftpd OOPS. Turns out there are two vsftpd.conf files: one in /etc and another in /etc/vsftpd. Try this.
Code:
mv /etc/vsftpd.conf /etc/vsftpd.conf.orig Code:
#listen_ipv6=YES Code:
service ftp Code:
/sbin/service xinetd restart Code:
[jcliburn@osprey ~]$ ftp petrel |
Okay, so the more I think about it, the more I convince myself that *I* put the errant vsftpd.conf in /etc. I can't find anything else that might've put it there. But the bottom line is this: the proper file is /etc/vsftpd/vsftpd.conf, and you need to turn off the "listen" option in that file to allow vsftpd to work within xinetd.
If you want vsftpd to run standalone, then set "listen=yes". From what I can tell, for better or worse, that's the way the option is set in the vsftpd rpm. |
Hi jcliburn,
I am sorry to bother you again. I have not be able to get the ftp to work with IPv6 after 2 days of using your instruction, also working and searching all over the web to make sure that I have exaust my ability to solve my problem. Please help me. Here is my status, using your instruction: I am able to get telnet work with IPv4 and IPv6 address. I can only get the ftp to work with IPv4 address (error = unknown host). 1. There is no vsftp file any where in my system including /etc/xinetd.d/ 2. I created myself the vsftp file as your list in /etc/xinetd.d/ and I am able to start vsftp without the OOPs error. 3. I did edit the /etc/vsftpd/vsftpd.conf : commented out listen and tcp_wrappers as you said 4. The netstat always show that only ssh reply to IPv6 address but not vsftp and xinetd as shown in your system. I think this is a clue for what I am missing and why ftp does not work for IPv6. Question: what do you mean by running vsftpd *inside* xinetd or *outside* xinetd ? Do you mean *start* xinetd (inside) and *stop* xinetd (outside) ? I tried start vsftpd with *started* or *stopped* xinetd (using command "service xinetd start" or "stop")then run ftp but all I got is "unknown host" error. It must be some flags setting missing that cause the vsftpd and xinetd do not listen to IPv6 address as your (netstat). Could you please look at this log and point out what I am missing? Please understand that I did doing the best, spend last 2 days to work on this problem but could not figure it out and I appreciate your help. I am looking forward to hear from you soon. Best regards. -------------------------------------------------------------------------- [root@localhost /]# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:D0:B7:57:EC:A0 inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0 inet6 addr: fec0::2d0:b7ff:fe57:eca0/64 Scope:Site inet6 addr: fe80::2d0:b7ff:fe57:eca0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:208519 errors:0 dropped:0 overruns:0 frame:0 TX packets:4626 errors:4 dropped:0 overruns:0 carrier:4 collisions:1528 txqueuelen:1000 RX bytes:36458277 (34.7 MiB) TX bytes:412913 (403.2 KiB) -------------------------------------------------------------------------- [root@localhost /]# ip addr 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 192.168.10.1/24 brd 192.168.10.255 scope global eth0 inet6 fec0::2d0:b7ff:fe57:eca0/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 -------------------------------------------------------------------------- [root@localhost /]# 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 :::22 :::* LISTEN 1809/sshd <<<<<<<========= -------------------------------------------------------------------------- [root@localhost /]# ftp fec0::2d0:b7ff:fe58:6bb6 ftp: fec0::2d0:b7ff:fe58:6bb6: unknown host ftp> quit [root@localhost /]# ftp fe80::2d0:b7ff:fe58:6bb6 ftp: fe80::2d0:b7ff:fe58:6bb6: unknown host ftp> quit -------------------------------------------------------------------------- |
Quote:
Code:
[root@petrel ~]# yum list installed xinetd vsftpd telnet-server Quote:
Quote:
Quote:
I'll post all my related config files in a few minutes. |
These config files enable the use of vsftpd and telnetd under the control of xinetd. I don't use either telnet or ftp, so if the config files are configured stupidly and/or insecurely, I don't care. I intend to disable the services when this is over.
First, remove or rename /etc/vsftpd.conf if it exists. Second, disable the firewall on the server machine (or configure it to allow connections on ports 21 and 23). The following files are on the server machine (hostname petrel), not the client (hostname osprey). /etc/vsftpd/vsftpd.conf Code:
[root@petrel ~]# cat /etc/vsftpd/vsftpd.conf Code:
[root@petrel ~]# cat /etc/xinetd.conf Code:
[root@petrel ~]# cat /etc/xinetd.d/vsftpd Code:
[root@petrel ~]# cat /etc/xinetd.d/telnet Code:
[root@petrel ~]# service xinetd restart Code:
[root@petrel ~]# netstat --inet6 -pnl Code:
[root@petrel ~]# ifconfig eth0 Code:
[jcliburn@osprey ~]$ ftp fec0::2b0:d0ff:fe82:6dda |
Hi jcliburn,
Thank you very much for your time and for your much need response. 1. There is no vsftpd.conf in my /etc 2. My /etc/vsftpd/vsftpd.conf, /etc/xinetd.conf, /etc/xinetd.d/vsftpd and /etc/xinetd.d/telnet files are compared to be identical as your sample files. 3. xinetd, vsftpd start OK just as you show 4. Again, "netstat --inet6 -pnl" command does not show anything else but "sshd" 5. The reason you see my ftp command does not match with listed IPv6 address because I am ftp to the other machine. I tried to ftp itself (ftp fec0::2d0:b7ff:fe57:eca0) but still it returned "unknown host". 6. I think even both of my PCs installed and setup as server (the same way) the "netstat --inet6 -pnl" command should show exactly as yours. 7. You said "The following files are on the server machine (hostname petrel), not the client (hostname osprey)": I assume that the client will not have vsftpd, xinetd started. May be it was my dum idea but I stopped both services on one machine and I still got the same unknown host error. Is that OK for both machines setup identical as server ? In anycase, the netstat command must show just as what you have. 8.Should I start from scratch by reinstall FC4 one as server and one as workstation ? Once again, I'm really appreciate your help and your time. Best regards. These are logs from my 2 PCs, both have the same FC4 installation as Server with most if not all options were selected and with *no* firewall: This PC#1: [root@localhost ~]# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:D0:B7:57:EC:A0 inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0 inet6 addr: fec0::c0a8:a01/64 Scope:Site inet6 addr: fec0::2d0:b7ff:fe57:eca0/64 Scope:Site inet6 addr: fe80::2d0:b7ff:fe57:eca0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:210889 errors:0 dropped:0 overruns:0 frame:0 TX packets:4940 errors:4 dropped:0 overruns:0 carrier:4 collisions:1530 txqueuelen:1000 RX bytes:36754270 (35.0 MiB) TX bytes:440413 (430.0 KiB) --------------------------------------------------------------------------- [root@localhost ~]# yum list installed xinetd vsftpd telnet-server Installed Packages telnet-server.i386 1:0.17-35 installed vsftpd.i386 2.0.3-1 installed xinetd.i386 2:2.3.13-6 installed --------------------------------------------------------------------------- [root@localhost ~]# netstat --inet6 -pnl Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 :::22 :::* LISTEN 1809/sshd =========================================================================== This is PC#2: [root@localhost /]# yum list installed xinetd vsftpd telnet-server Installed Packages telnet-server.i386 1:0.17-35 installed vsftpd.i386 2.0.3-1 installed xinetd.i386 2:2.3.13-6 installed --------------------------------------------------------------------------- [root@localhost /]# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:D0:B7:58:6B:B6 inet addr:192.168.10.2 Bcast:192.168.10.255 Mask:255.255.255.0 inet6 addr: fec0::c0a8:a02/64 Scope:Site inet6 addr: fec0::2d0:b7ff:fe58:6bb6/64 Scope:Site inet6 addr: fe80::2d0:b7ff:fe58:6bb6/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:206071 errors:0 dropped:0 overruns:0 frame:0 TX packets:6725 errors:6 dropped:0 overruns:0 carrier:6 collisions:2763 txqueuelen:1000 RX bytes:38283545 (36.5 MiB) TX bytes:623209 (608.6 KiB) --------------------------------------------------------------------------- [root@localhost /]# netstat --inet6 -pnl Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 :::22 :::* LISTEN 2225/sshd =========================================================================== |
Quote:
Quote:
Please execute the following commands on the server machine and post their results here. Code:
# service xinetd restart Code:
# which ftp Which, if any, of your hosts is running radvd? Do you have ethereal-gnome installed? |
Hi jcliburn,
I think you ask the absolute right questions. Some how the one I call Server(or PC#2) after I excecuted again "service xinetd restart" as you said I see that there are 2 instances of xinetd and both listen to IPv6 address (exactly as in your system), while the PC#1 which I call Client has none other than sshd listen to IPv6 address. I do not recall what I did differently from one machine to the other and why it is like that. Ofcourse the ftp still failed. I then execute "service xinetd restart" on the Client, now I see that there is one, but only one, xinetd listen to IPv6 address. The ftp still failed. In my work environment, is my embedded Linux box(network printer, or target system) a client or server ? These 2 systems are supposed to be identical so that I can telnet, ftp to and from either one (Any developer can telnet or ftp in or out from one to the other) What can I do now? Please help me. Best regards. Quang Here is the screen logs for 2 machines. ======================================================================= CLIENT (PC#1) ======================================================================= [root@localhost /]# which ftp /usr/kerberos/bin/ftp [root@localhost /]# hostname localhost.localdomain [root@localhost /]# cat /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost [root@localhost /]# netstat --proto=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: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:23 0.0.0.0:* LISTEN 19217/xinetd tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 31192/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: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:* 31192/cupsd ======================================================================= SERVER (PC#2) ======================================================================= [root@localhost /]# service xinetd restart Stopping xinetd: [ OK ] Starting xinetd: [ OK ] [root@localhost /]# netstat --proto=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:2049 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:32769 0.0.0.0:* LISTEN 1831/rpc.statd tcp 0 0 0.0.0.0:612 0.0.0.0:* LISTEN 2132/rpc.mountd tcp 0 0 0.0.0.0:32774 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1787/portmap tcp 0 0 0.0.0.0:1008 0.0.0.0:* LISTEN 2100/rpc.rquotad tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 18884/cupsd tcp 0 0 127.0.0.1:5335 0.0.0.0:* LISTEN 2162/mDNSResponder tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2251/sendmail: acce tcp 0 0 :::21 :::* LISTEN 15067/xinetd tcp 0 0 :::22 :::* LISTEN 2225/sshd tcp 0 0 :::23 :::* LISTEN 15067/xinetd udp 0 0 0.0.0.0:32768 0.0.0.0:* 1831/rpc.statd udp 0 0 0.0.0.0:2049 0.0.0.0:* - udp 0 0 0.0.0.0:32822 0.0.0.0:* - udp 0 0 0.0.0.0:735 0.0.0.0:* 1831/rpc.statd udp 0 0 0.0.0.0:609 0.0.0.0:* 2132/rpc.mountd udp 0 0 0.0.0.0:5353 0.0.0.0:* 2162/mDNSResponder udp 0 0 0.0.0.0:1005 0.0.0.0:* 2100/rpc.rquotad udp 0 0 0.0.0.0:111 0.0.0.0:* 1787/portmap udp 0 0 0.0.0.0:631 0.0.0.0:* 18884/cupsd [root@localhost /]# [root@localhost /]# hostname localhost.localdomain [root@localhost /]# cat /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost [root@localhost /]# cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=localhost.localdomain [root@localhost /]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=none HWADDR=00:D0:B7:58:6B:B6 ONBOOT=yes TYPE=Ethernet USERCTL=no PEERDNS=yes IPV6INIT=yes NETMASK=255.255.255.0 IPADDR=192.168.10.2 [root@localhost /]# ======================================================================= Client: Execute "service xinetd restart" ======================================================================= [root@localhost /]# service xinetd restart Stopping xinetd: [ OK ] Starting xinetd: [ OK ] [root@localhost /]# netstat --proto=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: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:23 0.0.0.0:* LISTEN 31269/xinetd tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 31192/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 :::21 :::* LISTEN 31269/xinetd 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: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:* 31192/cupsd [root@localhost /]# hostname localhost.localdomain [root@localhost /]# cat /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost [root@localhost /]# cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=localhost.localdomain [root@localhost /]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=none HWADDR=00:D0:B7:57:EC:A0 ONBOOT=yes TYPE=Ethernet USERCTL=no PEERDNS=yes IPV6INIT=yes IPADDR=192.168.10.1 NETMASK=255.255.255.0 [root@localhost /]# |
You're using the wrong ftp client. Use /usr/bin/ftp. (I think that's where it is. Find it with the command "whereis ftp".)
As a matter of fact, you should remove /usr/kerberos/bin from your default path if you're not using any kerberized services. Quote:
For the sake of simplifying your troubleshooting efforts with this particular problem, I recommend you pick one machine and use that as your server. Focus your attention on getting the daemons correctly configured on that machine. Use the other machine as your client and initiate your ftp, telnet, ssh, whatever commands from that machine. Once you get everything working correctly, duplicate the configuration on the other machine if your intent ultimately is to have two ftp/telnet servers for your staff. I'm at work right now, and I don't have access to my Fedora machines at home, but I'll look into your results more when I get home this evening. |
Hi jcliburn,
You are right on. Here is the steps that I did on my client: 1. Activate the device profile for crossover cable (I was using the DHCP profile for send my logs file back to my workstation). I don't know the command how to deactivate or activate a current ethernet device from console so I have to do it with Fedora GUI. 2. Add back IPv6 addresses fec0::c0a8:a01 and fec0::2d0:b7ff:fe57:eca0 3. I don't know where to change the PATH so I rename the usr/kerberos to usr/kerberos.notused hopefully it will continue search in /usr/bin (it is in the PATH)but it did not look further than /usr/kerberos, it say command not found so I have to use full path. I see the following files specify /usr/kerberos path: eklogin, gssftp, klogin and kshell. Which one should I change to /usr/bin, should I change all of them ? 4. I run "service xinetd restart" then 5. I run "service vsftpd restart" I do not know if the above order of running xinetd and vsftpd is important or not but now the netstat command does show 2 instance of xinetd listening to IPv6 address Run /usr/bin/ftp fec0::c0a8:a01 and it works! but has to be full path Also /usr/bin/telnet fec0::c0a8:a01 work too! I forgot to answer one of your previous question regarding ethereal-gnome, I really don't know what it is and if it was installed with Server option in FC4 installation, I don't know. Why all the sudden on my *client* machine show 2 instances of xinetd listening to IPv6 address? It was not like that this morning, can the above order of running xinetd and vsftpd is the reason? I repeat the above steps on my *server* machine, the netstat show the same 2 instances of xinetd. and now I can ftp to/from either one. Those are couple more questions for you. I hope that I know how to use this knowledge to set up the real system using Red Hat 9 (2.4.20). Thank you very very much for your help. I appreciate the time you put in to help me. I am looking forward to hear from you soon. Best regards. |
Quote:
Quote:
Quote:
Quote:
Good luck. Jay |
Hi jcliburn and cuiq,
Thank you so much for your kindness and patience. It will be a long time but I hope I will be as good as you on linux because my company has get rid of all lynx, sunOS, precise, etc... to use Linux. Now I have to use those knowledge to setup my real system but I know where to get help. I wish you all a merry Christmas, a happy new year and good health (so you can help others!). I wish I can send you guy, at the minimum, a thank you card. Once again, thank you very much. Best regards. :) |
All times are GMT -5. The time now is 12:24 PM. |