sssss

#!/bin/bash

cat << EOF
hostname R1
interface FastEthernet0/0
 ip address 10.1.1.1 255.255.255.0
interface FastEthernet0/1
 ip address 20.1.1.1 255.255.255.0
interface FastEthernet1/0
 ip address 192.168.12.1 255.255.255.0
router rip
 version 2
 network 10.0.0.0
 network 20.0.0.0
 network 192.168.12.0
 no auto-summary

hostname R2
interface FastEthernet0/0
 ip address 192.168.12.2 255.255.255.0
interface FastEthernet0/1
 ip address 192.168.23.2 255.255.255.0
router rip
 version 2
 network 192.168.12.0
 network 192.168.23.0
 no auto-summary

hostname R3
interface FastEthernet0/0
 ip address 192.168.23.3 255.255.255.0
 ip access-group 112 in
router rip
 version 2
 network 192.168.23.0
 no auto-summary
access-list 111 permit tcp host 192.168.23.2 host 192.168.23.3 eq telnet
access-list 112 deny   icmp host 10.1.1.10 host 192.168.23.3
access-list 112 permit icmp any host 192.168.23.3
line vty 0 4
 password 123
 login

set pcname PC1
ip 10.1.1.10 10.1.1.1 24
set pcname PC2
ip 20.1.1.10 20.1.1.1 24
EOF
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值