il suffit qu'une route (voir même la default route) pointe sur ton accès (exemple box adsl)
imaginons que ton ip locale soit 192.168.0.1 et ta box en 192.168.0.254
exemple de routage : ma default est sur ma box
frs@tempo:~/Documents/DEV/DEV/appolo11$ ssh francois@IP.IP.IP.IP -p 9119
francois@IP.IP.IP.IP's password: The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
No mail.
Last login: Wed Jul 19 18:03:42 2017 from 89.225.229.184
____ ___ _ _____ ___ _____ _ ___ _ ___ _ _ |___ \ / _ \/ |___ / _ \___ / |/ _ \ / |( _ )/ / |
__) | | | | | / / | | | / /| | (_) |_____| |/ _ \| | |
/ __/| |_| | | / /| |_| |/ / | |\__, |_____| | (_) | | |
|_____|\___/|_|/_/ \___//_/ |_| /_/ |_|\___/|_|_|
(xcowsay:22716): Gtk-WARNING **: cannot open display: _______________________________________
< The second best policy is dishonesty. >
---------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
francois@h2g2:~$ sudo route
[sudo] password for francois: Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.0.254 0.0.0.0 UG 1024 0 0 eth0
link-local * 255.255.0.0 U 1000 0 0 docker0
172.17.0.0 * 255.255.0.0 U 0 0 0 docker0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
francois@h2g2:~$ exit
logout
Connection to IP.IP.IP.IP closed.
frs@tempo:~/Documents/DEV/DEV/appolo11$
|
la commande c'est donc
route add default gw {IP-ADDRESS} {INTERFACE-NAME} |
J'imagine que pour hyperV la gateway est l'IP de ton hyperV
Message édité par francoisp31 le 19-07-2017 à 18:15:31