route相关学习

下载了一本书看看,顺便做些练习
下载地址:http://www.itpub.net/attachment.php?postid=1962731

安装iproute包  Professional tools to control the networking in Linux kernels
 apt-get install iproute

显示链路
ip link list
显示IP地址
ip addr show
显示路由表
ip route show
查看ARP表
ip neigh show
删除ARP缓冲
ip neigh delete 10.0.22.11 dev eth0
查看路由规则
ip rule ls
新建规则
echo 200 john >>/etc/iproute2/rt_tables
ip rule add from 10.0.0.10 table john
ip route add via 195.96.98.253 dev ppp2 table john
ip route flush cache
流量分割
ip route add $P1_NET dev $IF_1 src $IP1 table T1
ip route add default via $P1 table T1
ip route add $P2_NET dev $IF_2 src $IP2 table T2
ip route ad default via $P2 table T2
隧道..IPSEC...不懂
ip route add 224.0.0.0/4 dev eth0
echo 1 > /proc/sys/net/ipv4ip_forward
ping -c 224.0.0.1
队列什么的,更不懂,以后再说。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值