【发布时间】:2017-09-11 10:08:27
【问题描述】:
我正在尝试将我的运行配置文件从 Cisco 接入点复制到
我的 Linux 机器 /tftpboot/ 目录,但我遇到了类似的问题
user@device#telnet 192.168.xxx.xTrying 192.168.xxx.x...Connected to 192.168.xxx.x (192.168.xxx.x).Escape character is '^]'.
User Access Verification
Username: CiscoPassword:ap>enPassword:ap#copy running-config tftp:Address or name of remote host []? 192.168.xxx.xDestination filename [ap-confg]? backup_config_192_168_xxx_x.....%Error opening tftp://192.168.xxx.x/backup_config_192_168_xxx_x (Timed out)
我已经按照给定的命令在我的 Linux 机器上设置了防火墙规则
(/sbin/iptables -L INPUT | /bin/grep 192.168.xxx.x | /bin/grep tftp || /sbin/iptables -I INPUT -p UDP -i eth0.100 -s 192.168.xxx.x --dport 69 -j ACCEPT) > /dev/null 2>&1/sbin/iptables -A INPUT -i eth0.100 -s 192.168.xxx.x -p udp -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT > /dev/null 2>&1/sbin/iptables -A OUTPUT -o eth0.100 -s 192.168.xxx.x -p udp -m state --state ESTABLISHED,RELATED -j ACCEPT > /dev/null 2>&1
eth0.100 是接入点的接口
【问题讨论】:
标签: linux bash shell networking cisco