Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Running dhclient means you're trying to get an IP address from a DHCP server. In this particular scenario, no DHCP service can be found on the LAN segment, so the DHCP operation will fail.
After a while, dhclient should assign an APIPAlink-local IP address to the interface. In other words, the computers should be able to communicate using the automatically assigned 169.254.x.x addresses.
IF you want to use addresses in the 192.168.1.0/24 network, you'll have to assign addresses manually. In fact, that's exactly what you're doing if you run ifconfig as you suggested, so if you just leave dhclient out of it, everything should work.
Running dhclient means you're trying to get an IP address from a DHCP server. In this particular scenario, no DHCP service can be found on the LAN segment, so the DHCP operation will fail.
After a while, dhclient should assign an APIPAlink-local IP address to the interface. In other words, the computers should be able to communicate using the automatically assigned 169.254.x.x addresses.
IF you want to use addresses in the 192.168.1.0/24 network, you'll have to assign addresses manually. In fact, that's exactly what you're doing if you run ifconfig as you suggested, so if you just leave dhclient out of it, everything should work.
First, ifdown eth0 and ifdown eth3.
First pc:
Would you think that I should give it, with static:
Code:
# The loopback network interface
# auto lo
# iface lo inet loopback
iface eth0 inet static
address 192.168.1.23
Second pc:
Code:
# The loopback network interface
# auto lo
# iface lo inet loopback
iface eth3 inet static
address 192.168.1.24
and give 192.168.1.23 to the other one, with static.
Then, on both, to do the ifup eth3 and ifup eth0.
I tried this "interface" file, but it did NOT work
I bought a Router to save time, since I needed it. The router does take care of the DHCP server.
I believe that the method I used in the past is outdated. Many forums talk about wlan0 but a crossover ? Today, does it make any single sense to make a backup using a crossover ethernet cable? Future is wifi and high speed transferts. There will be more and more wireless in the future, with more data (waves) going in the air.
Almost no one needs a crossover cable anymore. Almost every nic and router made in the last 15 years has a way to adjust for the patch or crossover cable by the way. They sometimes won't correct unless you power down fully however.
Almost no one needs a crossover cable anymore. Almost every nic and router made in the last 15 years has a way to adjust for the patch or crossover cable by the way. They sometimes won't correct unless you power down fully however.
Wireless may be getting faster but so is wired.
And, you have nothing against having very high-speed wireless, right? Let's talk in 20 years, again...
Of course, for data backup, the crossover makes sense for home purpose, still today.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.