Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Linux command: route
(edit)
Revision as of 12:06, 10 May 2018
295 bytes added
,
12:06, 10 May 2018
no edit summary
Line 17:
Line 17:
up route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.1.1
up route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.1.1
up route add -net 172.16.0.0 netmask 255.240.0.0 gw 192.168.1.1</nowiki>
up route add -net 172.16.0.0 netmask 255.240.0.0 gw 192.168.1.1</nowiki>
+
+
routes.sh
+
<source lang=bash>sudo route del -net 0.0.0.0 gw 15.17.160.1 netmask 0.0.0.0 enp9s0
+
sudo route add -net 20.1.40.0 netmask 255.255.255.0 gw 15.17.160.1
+
sudo route add -net 22.0.0.0 netmask 255.255.0.0 gw 15.17.160.1 enp9s0
+
sudo ip r a 20.1.30.0/24 via 15.17.160.1 dev enp9s0</source>
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version