单选题 4台Linux主机通过图6-1所示的方式互联,则实现PC1与PC4之间互访的步骤为:
1.运行 (3) 命令关闭计算机,在PC2与PC3上添加第二块网卡(eth1),重新启动;
2.在PC2与PC3上为第二块网卡分配IP地址,并激活该网络接口,对于PC3,应执行 (4)
3.如果使用routed作为路由器进程,则作为路由器的PC2与PC3仅支持路由协议 (5) ;如果在PC2与PC3上设置静态路由信息并开启路由功能,对于PC2则应执行 (6)
4.在PCI和PC4上配置各自的默认同关,对于PC1,应执行 (7)
单选题 A.reboot B.shutdown C.init0 D.init6
【正确答案】 B
【答案解析】
单选题 A.ifconfig-up eth1 10.1.1.2/8
B.ifconfig eth1 10.1.1.2 255.0.0.0 up
C.ifconfig eth1 10.1.1.2 up netmask 255.0.0.0
D.ifconfig eth1 10.1.1.2/8:ifconfig eth1 up
【正确答案】 C
【答案解析】
单选题 A.RIP B.BGP C.OSPF D.EGP
【正确答案】 A
【答案解析】
单选题 A.route add-net 202.114.100.0/24 gw 10.1.1.1
B.route add-net 202.114.100.0/24 gw 10.1.1.2
C.route add-net 202.1 14.100.0/24 gw 10.1.1.2
echo"1">/proc/sys/net/ipv4/ip forward
D.route add-net 202.114.110.0/24 gw 10.1.1.1
echo"1">/proc/sys/net/ipv4/ip forward
【正确答案】 C
【答案解析】
单选题 A.route add default 202.114.110.254
B.route add default 202.1 14.100.254
C.routeadd-host 202.1 14.100.1/24 gw 202.114.1 10.254
D.routeadd-net 0.0.0.0/32 gw 202.1 14.100.254
【正确答案】 A
【答案解析】