Re: local network with twisted rj45



My mistake. .0 is the network address.

On 1/17/07, Douglas Allan Tutty <dtutty@xxxxxxxxxxxxx> wrote:
I use a cross-over cable all the time between two computers.
Then again, I have the cable. If you don't and you can't make one, then
believe it or not an ethernet switch is often cheaper than a cross-over
cable.

I have in /etc/network/interfaces:
computer 1:
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255

computer 2 is the same except for the address being 192.168.1.3

After you make the changes, on each computer:
ifdown eth0
ifup eth0

Also put both computers in both computer's /etc/hosts
127.0.0.1 localhost
192.168.1.1 computer1
192.168.1.3 computer2

You should then be able to ping back and forth.

Remember that 192.168.1.0 is the network itself.

Read the debian-reference, and the relavent HOWTOs

Good luck,

Doug.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact
listmaster@xxxxxxxxxxxxxxxx




--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • RE: Ethernet & DHCP Fails on Cable Modem to Internet
    ... > When I try to activate eth0 using the Network ... > Do you Yahoo!? ...
    (RedHat)
  • Re: eth0: no IPv6 router present - resolved, thanks
    ... dhcpclient as well as assigning a new address to the interface. ... ip addr show dev eth0 ... subject of "unsubscribe". ... Trouble? ...
    (Debian-User)
  • Re: Problem switching to static IP address
    ... networking it reports the network is reconfigured but the network is ... subject of "unsubscribe". ... Trouble? ... DEL/POLI/UFRJ. ...
    (Debian-User)
  • Re: switching to DHCP in a clean manner ...
    ... I just moved from the NY metro area to the Boston metro area, and in the process changed ISPs. ... Probably the best thing to do is edit /etc/network/interfaces to reflect your new network settings. ... iface eth0 inet dhcp ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: reconfig network interface
    ... my network eth0 is back and is working now, ... So could I remove this file and reboot system? ... of "unsubscribe". ...
    (Debian-User)