使用ifconfig命令配置并查看网络接口情况
2.使用route命令配置路由表 示例1:添加到主机路由 #routeadd–host192.168.4.2deveth0:1 #routeadd–host192.168.4.1gw192.168.4.250 示例2:添加到网络的路由 #routeadd–netIPnetmaskMASKeth0 #routeadd–netIPnetmaskMASKgwIP #routeadd–netIP/24eth1 示例3:添加默认网关 #routeadddefaultgwIP 示例4:删除路由 #routedel–host192.168.4.1
下载地址
用户评论