|
Crossover Cable Network
Part:
1
2
3
4
(Continued from previous part...)
>ping 192.168.0.2
Pinging 192.168.0.2 with 32 bytes of data:
Reply from 192.168.0.2: bytes=32 time<1ms TTL=128
Reply from 192.168.0.2: bytes=32 time<1ms TTL=128
Reply from 192.168.0.2: bytes=32 time<1ms TTL=128
Reply from 192.168.0.2: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.0.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
Very nice. My crossover cable network is working!
Note that:
- Both computers are configured to static private network IP addresses.
If you are taking the laptop back to an office network with dynamic IP address allocation,
you need to change the settings on the "Internet Protocol(TCP/IP) Properties" dialog box.
- "ipconfig" displays the connection status and settings of the network connection.
- "ping" command is good testing tool to check if you reach a remote computer or not over
the network.
Using FTP to Transfer Files
Now I have my two computers connected as a network, I can use FTP to send to receive files from each other:
1. On the laptop, use IIS (Internet Information Service) to set up a FTP server. See the "FTP Server and Client"
chapter in this book for detailed information on how to set up a FTP server.
2. Copy files to be shared with the desktop to the c:\inetpub\ftproot directory.
3. On the desktop, run the ftp client in a command window:
>ftp 192.168.0.1
Connected to localhost.
220 Microsoft FTP Service
User (192.168.0.1:(none)): herong
331 Password required for herong.
Password: ********
230 User herong logged in.
ftp> quit
221
Cool. I can transfer files now FTP commands.
Assigning Host Names
Now my two computers are fully connected and working. But I have to address them by IP addresses,
192.168.0.1 or 192.168.0.2, when using any communication programs. Can I assign host names to my computers,
and associate IP addresses with them? The answer is yes. Here is how:
1. On the laptop, go to Start > Control Panel > Systems. The "System Properties"
dialog box shows up.
2. Go to the "Computer Name" tab and make sure "laptop" is in the computer name field.
3. Edit file c:\windows\system32\drivers\etc\hosts to add an entry for the desktop computer:
127.0.0.1 localhost
192.168.0.2 desktop
(Continued on next part...)
Part:
1
2
3
4
|