Dec 19, 2016

Windows routing commands

Leave a Comment

Route config
route ADD 10.0.0.2 MASK 255.255.255.255 192.168.0.1 if 0x5
route ADD 10.0.0.2 MASK 255.255.255.255 10.0.120.1 if 0x4
route ADD 10.0.0.0 MASK 255.0.0.0 10.0.120.1 if 0x5
route add 10.0.0.0/24 10.0.120.1
route DELETE 10.0.0.0

netsh interface ip delete destinationcache

See the index of network interfaces

route print

Port forwarding
Computer have 2 interfaces: 1 for connecting to the Internet 10.0.12.137, 1 for connecting to webserver 192.168.0.1(80)

netsh interface portproxy add v4tov4 listenport=8888 listenaddress=10.0.12.137 connectport=80 connectaddress=192.168.0.1

Remove port forwarding
netsh interface portproxy delete v4tov4 listenport=8888 listenaddress=10.1.12.137

Open firewall
netsh advfirewall firewall add rule name="Any_rule_name" protocol=TCP dir=in localip=10.0.12.137  localport=8888 action=allow

netsh interface portproxy show all

Show multicast information
netsh interface ip show joins
netsh interface ipv6 show join
If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment