Community
Buy or Renew
EN US
Chinese
EN US
French
Japanese
Korean
Portuguese
Spanish
Log In
MENU
CLOSE
Buy or Renew
Log In
EN US
Chinese
EN US
French
Japanese
Korean
Portuguese
Spanish
gaojing1
Level 1
Member since
12-07-2016
12-11-2020
Recent Badges
Awards
User Statistics
4
Posts
0
Solutions
0
Helpful votes Given
10
Helpful votes Received
Recent Badges
See all
Cisco Community
About gaojing1
Please click
here
to merge your Webex community account with this Cisco.com community account
User Activity
Posts
Replies
思科路由器pppoe拨号公网IP问题
12-07-2016
路由器为cisco 891F,运营商为江苏移动。江苏移动pppoe拨号提供公网和私有2种IP地址。cisco ios是否支持脚本对pppoe获得的2种IP地址进行监控和操作。如果获得的是10、100、172开头的私有IP地址,就重新拨号,直到获取到公网IP地址为止。谢谢。前期经过咨询,好像思科有eem可以支持,但是不知道怎么下手。谢谢,请指教。
思科路由器pppoe拨号公网IP问题
12-09-2016
思路代码set address [exec "show ip interface b gi0/0 | include GigabitEthernet0/0"]set address [lrange $address 1 1]set A [string range $address 0 [expr [string first "." $address]-1] ]switch $A { "100" { exec "clear pppoe all"...
思科路由器pppoe拨号公网IP问题
12-09-2016
基本成功。利用eem时间促发tcl脚本,简单判断实现了自动重新拨号直至获取公网IP。但是判断还不够好,最好的应该是直接遇到如下运营商可能提供的私有IP地址段就重播。10.0.0.0--10.255.255.255172.16.0.0--172.31.255.255100.64.0.0--100.127.255.255目前只是简单的利用ip地址的前面是10还是100来简单操作,因为我这边的cmcc只会出这2中私有IP。
思科路由器pppoe拨号公网IP问题
12-07-2016
自己研究了1个下午,思路基本是这样。编写tcl语句,然后利用dial端口的拨号up日志,进行简单的地址判断,而进行相关操作。晚上实际测试后反馈结果。
Community Statistics
Member Since
12-07-2016
12:16 AM
Date Last Visited
12-11-2020
03:51 AM
Posts
4
Total Helpful Votes Received
10
Helpful Votes From
User
Helpful Count
imest
10
See all >