Add Network
18
Network.md
Normal file
18
Network.md
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
This is high-priority, because changing Netplan will switch down ssh session.
|
||||||
|
|
||||||
|
Change /etc/netplan/**.yaml :
|
||||||
|
|
||||||
|
```
|
||||||
|
blabla
|
||||||
|
bridges:
|
||||||
|
br0:
|
||||||
|
interfaces: [enp3s0]
|
||||||
|
```
|
||||||
|
|
||||||
|
then `sudo netplan apply`
|
||||||
|
|
||||||
|
Note that MAC of the device will change, so IP can also change and ssh session will not re-appear.
|
||||||
|
|
||||||
|
Note that changing net or device config of host may change the name of enp3s0 interface, and reconfiguration will be needed.
|
||||||
|
|
||||||
|
AFTER HELL AMOUNT OF TIME I figured out that router setting remote IP is not MY ip, but the machine that sends requests remote ip, so just need to keep empty! fuck. also, access from intranet by ip does not actually goes outside the intranet. fuck.
|
||||||
Reference in New Issue
Block a user