In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Add subinterfac
Ifconfig eth0:0 10.59.0.23 netmask 255.255.255.0
Static rout
Method 1:
Add route route add-net 192.168.0.0 dev 24 gw 192.168.0.1route add-host 192.168.1.1 dev 192.168.0.1 delete route route del-net 192.168.0.0x24 gw 192.168.0.1add add route del delete route-route to a network segment-route to a network segment-host set route to a host gw egress gateway IP address dev egress gateway physical device name Increase default route route add default gw 192.168.0.1
Method 2:
Add route ip route add 192.168.0.0Accord 24 via 192.168.0.1ip route add 192.168.1.1 deve 192.168.0.1 delete route ip route del 192.168.0.0, 24 via 192.168.0.1add add route del delete route via gateway egress IP address dev gateway egress physical device name increase default route ip route add default via 192.168.0.1 dev eth0via 192.168.0.1 is my default router if you save routing settings Make it still valid after a network restart create a file called route-eth0 in the / etc/sysconfig/network-script/ directory vi / etc/sysconfig/network-script/route-eth0 add the following format to this file 192.168.1.0 server 24 via 192.168.0.1 restart network verification
Windows add permanent rout
Route-p add 172.17.0.0 mask 255.255.0.0 192.168.24.71
Modify rout
[root@NewBBS_SQL ~] # ip route211.157.0.0/25 dev eth2 proto kernel scope link src 211.157.0.37 10.59.0.0 ip route211.157.0.0/25 dev eth2 proto kernel scope link src 24 via 10.211.0.254 dev eth0 10.211.0.0 dev eth0 proto kernel scope link src 24 dev eth0 proto kernel scope link src 192.168.28.37 169.254.0.016 dev eth2 scope link 10.223.0.016 Via 10.211.0.254 dev eth0 192.168.0.0 via 16 via 10.211.0.254 dev eth0 default via 211.157.0.60 dev eth2 [root@NewBBS_SQL ~] # ip route change 10.59.0.0 via 10.211.0.252 dev eth0 [root @ NewBBS_SQL ~] # route-nKernel IP routing tableDestination Gateway Genmask Flags Metric Ref Use Iface211.157.0.0 0.0.0.0 255.255.255.128 U 0 0 0 eth210.59.0.0 10.211.0.252 255.255.255.0 UG 0 0 0 eth010.211.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0192.168.28.0 0.0.0.0 255.255.255 . 0 U 0 0 0 eth0169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth210.223.0.0 10.211.0.254 255.255.0.0 UG 0 0 0 eth0192.168.0.0 10.211.0.254 255.255.0.0 UG 0 00 eth00.0.0.0 211.157.0.60 0.0.0.0 UG 00 0 eth2
The way in which other machines surf the Internet through a machine that can access the Internet in a local area network.
If 192.168.1.37 can access the Internet, first set the source address translation iptables rule Chain POSTROUTING (policy ACCEPT) target prot opt source destination SNAT all on the 192.168.1.37 that can access the Internet-- 192.168.1.0 to:192.168.1.37 24 0.0.0.0 to:192.168.1.37 enable ip_forward secondly, add a default route to the machine that needs to access the Internet. Make its gateway 192.168.1.37ip route add default via 192.168.1.37 dev eth0 metric 50 and make its cost less than the existing default value [root@mgmt-ldap01 network-scripts] # route-nKernel IP routing tableDestination Gateway Genmask Flags Metric Ref Use Iface0.0.0.0 192.168.1.37 0.0.0 UG 50 eth00.0.0. 0 192.168.1.1 0.0.0.0 UG 100 00 eth0169.254.169.254 192.168.1.254 255.255.255.255 UGH 100 00 eth0192.168.1.0 0.0.0.0 255.255.255.0 U 100 00 eth0
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.