How to connect two GNU/Linux computers with a cross cable
on box1
sudo ifconfig enp1s0 192.168.0.1 netmask 255.255.255.0 up
on box2
sudo ifconfig enp1s0 192.168.0.2 netmask 255.255.255.0 up
here I'm using enp1s0 as my eth0 interface name, it might just be eth0 on yours. You can check with whatever you get as LAN by the "ip a show" command
This is the cable I got, but any cross cable should do
This is the cable I got, but any cross cable should do
No comments:
Post a Comment