--- William Shu <[log in to unmask]> wrote:
> --- Marek Mahut <[log in to unmask]> wrote:
>
> > Hello William,
> >
> > William Shu wrote:
> > > Hi,
> > >
> > > I have secured a network cable (rj45 heads) to link a
> laptop
> > > directly to a desktop machine which has *no* access to a
> > > network. The desktop has TWO network cards and an rj11
> > socket
> > > (for telephone). The heads of the network cable have been
> > > rewired so that a switch or hub is *not* used. The
> > technician
> > > tested the cable by pinging between 2 Windows XP machines,
> > but
> > > knows nothing of linux and unix-based machines.
> > Unfortunately,
> > > when I do a ping from laptop to desktop or vice-versa, I
> get
> > the
> > > message "Destination Host Unreachable" (See sample output
> > > below).
> > >
> > > (I know next to nothing about networks and so I hope the
> > > questions below still make sense!)
> > >
> > > QUESTION 1: How should I go about having the desired
> > > peer-to-peer connection, without trying to use an Internet
> > > Service Provider, or start managing a local area network.
> I
> > > understand linux is a "network operating system" and so
> > nothing
> > > special needs to be done. That is, the desired service
> (ftp,
> > > ssh, etc) is requested and used, if it is set up on both
> > > machines.
> >
> > If you are connected with a crossover-cable (or have a
> network
> > card that
> > support crossover simulation), you have to only setup IP
> > addresses of
> > the same local vlan. For example 192.168.0.1 for your
> desktop
> > interface
> > and 192.168.0.2 for your laptop. You should be able to ping
> > each other
> > without having a route.
>
> Yes, this is what I think I did. Later, I will verify the
> connection.
I have now got the details of:
route -v
and:
/sbin/ifconfig -a
on both machines. I notice there is a destination, 169.254.0.0,
(under route -v) that I do not remember ever using!
======== [ Details on machine tiny: ] ===========
Statically set IP addresses on [desktop] tiny (found under the
General tab of system-config-network):
Address: 192.168.0.1
Subnet mask: 255.255.255.0
Default Gateway address: 192.168.0.1
[root@tinysl50 wss]# /sbin/route -v
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref
Use Iface
[root@tinysl50 wss]# /sbin/route -v
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref
Use Iface
192.168.0.0 * 255.255.255.0 U 0 0
0 eth0
169.254.0.0 * 255.255.0.0 U 0 0
0 eth0
default doit 0.0.0.0 UG 0 0
0 eth0
[root@tinysl50 wss]# /sbin/ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:50:DA:5D:77:A6
inet addr:192.168.0.1 Bcast:192.168.0.255
Mask:255.255.255.0
inet6 addr: fe80::250:daff:fe5d:77a6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:8155 (7.9 KiB)
eth1 Link encap:Ethernet HWaddr 00:0E:2E:2F:C8:B7
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:8165 (7.9 KiB)
Interrupt:9 Base address:0xaf00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2761 errors:0 dropped:0 overruns:0 frame:0
TX packets:2761 errors:0 dropped:0 overruns:0
carrier:0
collisions:0 txqueuelen:0
RX bytes:4050484 (3.8 MiB) TX bytes:4050484 (3.8 MiB)
peth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisi[root@tinysl50 wss]# ping 192.198.0.3
PING 192.198.0.3 (192.198.0.3) 56(84) bytes of data.
From 192.168.0.1 icmp_seq=2 Destination Host Unreachable
From 192.168.0.1 icmp_seq=3 Destination Host Unreachable
From ons:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:5 Base address:0x6e80
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
veth1 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
veth2 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
veth3 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:63 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:15839 (15.4 KiB) TX bytes:0 (0.0 b)
vif0.1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
[root@tinysl50 wss]# ping 192.198.0.3
PING 192.198.0.3 (192.198.0.3) 56(84) bytes of data.
From 192.168.0.1 icmp_seq=2 Destination Host Unreachable
From 192.168.0.1 icmp_seq=3 Destination Host Unreachable
From
vif0.2 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
vif0.3 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:63 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:14957 (14.6 KiB) TX bytes:0 (0.0 b)
[root@tinysl50 wss]# ping 192.168.0.3
PING 192.168.0.3 (192.168.0.3) 56(84) bytes of data.
From 192.168.0.1 icmp_seq=1 Destination Host Unreachable
From 192.168.0.1 icmp_seq=2 Destination Host Unreachable
From 192.168.0.1 icmp_seq=3 Destination Host Unreachable
--- 192.168.0.3 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss,
time 4012ms
, pipe 3
[root@tinysl50 wss]# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=0.239 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=0.215 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=64 time=0.219 ms
--- 192.168.0.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.215/0.224/0.239/0.016 ms
[root@tinysl50 wss]#
======== details on hp laptop ========
Statically set IP addresses on hp laptop (found under the
General tab of system-config-network):
Address: 192.168.0.3
Subnet mask: 255.255.255.0
Default Gateway address: 192.168.0.1
[root@hpsl50 wss]# /sbin/route -v
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref
Use Iface
192.168.0.0 * 255.255.255.0 U 0 0
0 eth0
169.254.0.0 * 255.255.0.0 U 0 0
0 eth0
default doit 0.0.0.0 UG 0 0
0 eth0
[root@hpsl50 wss]# /sbin/ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:16:D4:3A:20:40
inet addr:192.168.0.3 Bcast:192.168.0.255
Mask:255.255.255.0
inet6 addr: fe80::216:d4ff:fe3a:2040/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:35 errors:0 dropped:0 overruns:0 frame:0
TX packets:77 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8165 (7.9 KiB) TX bytes:9946 (9.7 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1854 errors:0 dropped:0 overruns:0 frame:0
TX packets:1854 errors:0 dropped:0 overruns:0
carrier:0
collisions:0 txqueuelen:0
RX bytes:2868320 (2.7 MiB) TX bytes:2868320 (2.7 MiB)
peth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:35 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8165 (7.9 KiB) TX bytes:0 (0.0 b)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
veth1 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
veth2 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
veth3 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:77 errors:0 dropped:0 overruns:0 frame:0
TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9946 (9.7 KiB) TX bytes:8165 (7.9 KiB)
vif0.1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
vif0.2 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
vif0.3 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:112 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:16543 (16.1 KiB) TX bytes:0 (0.0 b)
[root@hpsl50 wss]#
>
> >
> > > QUESTTION 2: How can I install a wireless router on the
> > above
> > > desktop, which has a modem card, but must not be linked
> to
> > > either the telephone or the internet!. The router (a
> > TRENDnet
> > > TEW432BRP) has a windowsXP and requires:
> > > * A Web browser: Internet Explorer (5.0 or above) or
> > > netscape Navigator (4.7 or aove),
> > > * Computer With network adapter installed
> > > * Broadband internet
> > > * Installed cble or DSL modem (Statitc/Dynamic/PPPoE
> > > connection)
> >
> > What should be the purpose of this wireless router? To
> connect
> > the
> > laptop using wifi to your desktop?
>
> Yes, that is the idea. Different laptops in range should be
> able
> to connect without hassle.
>
> >
> > As Connie said, please provide us with the output of
> following
> > commands:
> >
> > # /sbin/route -va
> > # /sbin/ifconfig -a
> > #
>
> I will supply the information Connie and others requested
> after
> I must have tried out the suggestions of Paul.
>
> >
> > And also, drawing a schema of your idea of the network would
> > be useful.
>
> How you mean schema? a diagrammatic representation? a
> description?
>
> > If you're new to linux world, I recommend you good
> > documentation at
> > http://tldp.org/ -- it helped me a lot when I've started
> with
> > linux.
> >
> > > Thanks in advance,
> > >
> > > William.
> > >
> > > -----------------[ Sample output ]--------------------
> > > [wss@hpsl50 ~]$ ping tinysl50.doit
> > > PING tinysl50.doit (192.168.0.1) 56(84) bytes of data.
> > > From hpsl50.doit (192.168.0.3) icmp_seq=1 Destination Host
> > > Unreachable
> > > From hpsl50.doit (192.168.0.3) icmp_seq=2 Destination Host
> > > Unreachable
> > > From hpsl50.doit (192.168.0.3) icmp_seq=3 Destination Host
> > > Unreachable
> > > From hpsl50.doit (192.168.0.3) icmp_seq=4 Destination Host
> > > Unreachable
> > > From hpsl50.doit (192.168.0.3) icmp_seq=5 Destination Host
> > > Unreachable
> > > From hpsl50.doit (192.168.0.3) icmp_seq=6 Destination Host
> > > Unreachable
> > >
> > > --- tinysl50.doit ping statistics ---
> > > 8 packets transmitted, 0 received, +6 errors, 100% packet
> > loss,
> > > time 7025ms
> > > , pipe 3
> > >
> > >
> > > [wss@hpsl50 ~]$ 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
> > hpsl50
> > > ::1 localhost6.localdomain6 localhost6
> > > 192.168.0.3 hpsl50.doit hpsl50
> > > 192.168.0.1 doit doit
> > > 192.168.0.1 tinysl50.doit tinysl50.doit
> > > [wss@hpsl50 ~]$
> >
> > Regards,
> >
> > --
> > Marek Mahut
> > https://fedoraproject.org/wiki/SIGs/Astronomy/
> > Fedora Project
> > http://www.jamendo.com/
> >
> >
>
>
>
>
>
____________________________________________________________________________________
> You rock. That's why Blockbuster's offering you one month of
> Blockbuster Total Access, No Cost.
> http://tc.deals.yahoo.com/tc/blockbuster/text5.com
>
____________________________________________________________________________________
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
http://tc.deals.yahoo.com/tc/blockbuster/text5.com
|