hi i just found this forum today i need to know how to connect kubuntu 9 to my fedora 11 computer for internet and possibly file sharing
Announcement
Collapse
No announcement yet.
how do i network 2 pcs over an crossover cable
Collapse
This topic is closed.
X
X
-
Re: how do i network 2 pcs over an crossover cable
Laptop:
The easiest way is to put them on the same router (wireless or otherwise) and then use Systemsettings-->Sharing.
desktop with serial port:
Use the laptop method or
connect the serial ports with a null modem (crossover) cable and use PPP to connect. See the ppp and serial howto's.
Or, consult the section "How to Convert Your Linux Server into a Simple Router"
About 3/4ths the way down the page:
http://www.linuxhomenetworking.com/w...nux_Networking
"A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
– John F. Kennedy, February 26, 1962.
- Top
- Bottom
-
Re: how do i network 2 pcs over an crossover cable
...internet and possibly file sharing
I haven't done it but AFAIK you will need to set up one computer as a gateway. This is all very educational, but I think GreyGeek's idea of using a router is, by far, the easiest and most practical method.
- Top
- Bottom
Comment
-
Re: how do i network 2 pcs over an crossover cable
Yes, you would need two NICs in one Linux box if you wanted to connect one Linux box to the network and the other Linux box to the first Linux box. Most ISPs supply a modem with only one eth0 port. Without a wireless you can connect two or more Linux boxes to that one modem. Connect that modem out eth0 to eth0 on the first Linux box with dhcp. Set ip_forward to 1
echo 1 > /proc/sys/net/ipv4/ip_forward
sysctl -w net.ipv4.ip_forward=1
and, to make permenant, add the following line:
net.ipv4.ip_forward = 1
and then runsysctl -p /etc/sysctl.conf
If you have a firewall active (which I don't) then something like this will be necessary:
#eth0 or wlan0 - connection to back of your wireless router or modem, or via the wireless sig
#eth1 – network card connected to second Linux box at eth0 both must have the same IP
echo -e “192.168.10.99 00:15:F2:16:6C:C2 dev eth1″ > /srv/mac.list
arp -f /srv/mac.list
iptables -t nat -A POSTROUTING -o eth0-j MASQUERADE
iptables -A FORWARD -i eth1 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
You must replace the MAC address with your eth1 MAC address. To find out what it is issue
ifconfig
eth1 Link encap:Ethernet HWaddr: xxxxxxx
"A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
– John F. Kennedy, February 26, 1962.
- Top
- Bottom
Comment
Comment