Answer the question
In order to leave comments, you need to log in
Is a single NIC gateway possible?
Perhaps a stupid question, but ...
* do not ask why, just wondering
Let's say there is a local server and a server distributing the Internet (two network ones).
Is it possible to do the following: in LAN, put a PC with one network, which will take the Internet from the server distributing the Internet and give it to other PCs in the same LAN (i.e. network one)
Answer the question
In order to leave comments, you need to log in
Maybe.
You need to look towards virtual interfaces.
linuxconfig.org/configuring-virtual-network-interf...
You will then need to configure DHCP and routing through the virtual interface superuser.com/questions/548502/route-ip-through-vi...
You can implement this using routing (for all PCs, your "gateway" is set as the default gateway, on the "gateway" - the distributing server)
Or you can implement the "router on a stick" scheme. You will need to support port-based VLAN and 802.1q tagging on the "gateway" and switch. In this case, the PC on the local network will not have direct access to the server.
"Non-standard solutions" with ARP substitution are also possible, but this is not for everyone.
the most elementary thing is to understand virtual machines on virtualbox
Google about the router on the stick.
PS
There are two network cards, but:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 08:60:6e:7e:5b:7f brd ff:ff:ff:ff:ff:ff
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
link/ether 00:14:d1:16:35:19 brd ff:ff:ff:ff:ff:ff
4: [email protected]: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default
link/ether 08:60:6e:7e:5b:7f brd ff:ff:ff:ff:ff:ff
5: [email protected]: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default
link/ether 08:60:6e:7e:5b:7f brd ff:ff:ff:ff:ff:ff
6: [email protected]: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default
link/ether 08:60:6e:7e:5b:7f brd ff:ff:ff:ff:ff:ff
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question