DrayTek UK Users' Community Forum
Help, Advice and Solutions from DrayTek Users
Draytek 2960 Telnet Commands
- orderwise
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank yous received: 0
09 May 2013 09:49 #76121
by orderwise
Draytek 2960 Telnet Commands was created by orderwise
Hi, I'm struggling to add an IP address binding via telnet onto our 2960. <br/>
I'm logged into configure-terminal-lan<br/>
<br/>
The command I am trying to use is in the format:<br/>
<br/>
ipbindmac add 10.1.2.2 00:13:20:38:48:92 test<br/>
<br/>
with 10.1.2.2 being the IP, 00:13:20:38:48:92 the mac address, and test being the name, obviously<br/>
<br/>
This does not work, and simply returns to the next line. Is the data in the correct format? <br/>
<br/>
If I use ipbindmac show then it lists the binding I have manually added through the web interface. The data is in the same format to what it shows here.<br/>
<br/>
The telnet command reference was last dated 2009, and so I suspect that something has changed since that was last updated.<br/>
<br/>
Any help would be appreciated.
I'm logged into configure-terminal-lan<br/>
<br/>
The command I am trying to use is in the format:<br/>
<br/>
ipbindmac add 10.1.2.2 00:13:20:38:48:92 test<br/>
<br/>
with 10.1.2.2 being the IP, 00:13:20:38:48:92 the mac address, and test being the name, obviously<br/>
<br/>
This does not work, and simply returns to the next line. Is the data in the correct format? <br/>
<br/>
If I use ipbindmac show then it lists the binding I have manually added through the web interface. The data is in the same format to what it shows here.<br/>
<br/>
The telnet command reference was last dated 2009, and so I suspect that something has changed since that was last updated.<br/>
<br/>
Any help would be appreciated.
Please Log in or Create an account to join the conversation.
- babis3g
- Offline
- Dedicated Contributor
-
Less
More
- Posts: 1686
- Thank yous received: 0
09 May 2013 14:40 #76128
by babis3g
Replied by babis3g on topic Re: Draytek 2960 Telnet Commands
i think you have tried "ipbindmac" and should be "ip bindmac" (space between them)<br/>
<br/>
here if will help you<br/>
<QUOTE>
This command allows users to set IP-MAC binding for LAN host.<br/>
ip bandmac on<br/>
ip bandmac off<br/>
ip bandmac strict_on<br/>
ip bandmac show<br/>
ip bandmac add [IP][MAC]<br/>
ip bandmac del [IP]/all<br/>
Syntax Description<br/>
on It means to turn on IP bandmac policy. Even the IP is not in the<br/>
policy table, it can still access into network.<br/>
off It means to turn off all the bindmac policy.<br/>
strict_on It means that only those IP address in IP bindmac policy table can<br/>
access into network.<br/>
show It means to display the IP address and MAC address of the pair of<br/>
binded one.<br/>
add It means to add one ip bindmac.<br/>
del It means to delete one ip bindmac.<br/>
IP It means to type the IP address for binding with specified MAC<br/>
address.<br/>
MAC It means to type the MAC address for binding with the IP address<br/>
specified.<br/>
All It means to delete all the IP bindmac settings.<br/>
Example<br/>
>ip bindmac add 192.168.1.46 00:50:7f:22:33:55<br/>
>ip bindmac show<br/>
ip bind mac function is turned ON </QUOTE>
<br/>
here if will help you<br/>
<QUOTE>
2.4.21 ip bindmac<br/>
This command allows users to set IP-MAC binding for LAN host.<br/>
ip bandmac on<br/>
ip bandmac off<br/>
ip bandmac strict_on<br/>
ip bandmac show<br/>
ip bandmac add [IP][MAC]<br/>
ip bandmac del [IP]/all<br/>
Syntax Description<br/>
on It means to turn on IP bandmac policy. Even the IP is not in the<br/>
policy table, it can still access into network.<br/>
off It means to turn off all the bindmac policy.<br/>
strict_on It means that only those IP address in IP bindmac policy table can<br/>
access into network.<br/>
show It means to display the IP address and MAC address of the pair of<br/>
binded one.<br/>
add It means to add one ip bindmac.<br/>
del It means to delete one ip bindmac.<br/>
IP It means to type the IP address for binding with specified MAC<br/>
address.<br/>
MAC It means to type the MAC address for binding with the IP address<br/>
specified.<br/>
All It means to delete all the IP bindmac settings.<br/>
Example<br/>
>ip bindmac add 192.168.1.46 00:50:7f:22:33:55<br/>
>ip bindmac show<br/>
ip bind mac function is turned ON </QUOTE>
Please Log in or Create an account to join the conversation.
- orderwise
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank yous received: 0
09 May 2013 14:54 #76130
by orderwise
Replied by orderwise on topic Re: Draytek 2960 Telnet Commands
No it's definitely ipbindmac on the 2960.<br/>
<br/>
It uses the new OS, which is probably why the telnet guide is wrong for some of it, as that was last updated in 2009.<br/>
<br/>
Figured it out in the end by perseverance.:<br/>
<br/>
configure terminal lan ? gives :<br/>
<br/>
Vigor2960@config-t-lan# <br/>
<br/>
apply Apply setting <br/>
<br/>
.. Go back to upper layer menu <br/>
exit Go back to config terminal menu <br/>
interlanRoute Configure Inter-LAN routing <br/>
ipbindmac Configure IP bind Mac <br/>
iprouting Configure iprouting section <br/>
pf Configure profile on LAN <br/>
route Configure static route section <br/>
route6 Configure static route6 section <br/>
switch Configure port <br/>
<br/>
<br/>
<br/>
For future reference, this is the command for binding IP via telnet on the 2960.<br/>
<br/>
ipbindmac add ip 10.1.2.2 macaddr 00:13:20:38:48:92 10_1_2_2
<br/>
It uses the new OS, which is probably why the telnet guide is wrong for some of it, as that was last updated in 2009.<br/>
<br/>
Figured it out in the end by perseverance.:<br/>
<br/>
configure terminal lan ? gives :<br/>
<br/>
Vigor2960@config-t-lan# <br/>
<br/>
apply Apply setting <br/>
<br/>
.. Go back to upper layer menu <br/>
exit Go back to config terminal menu <br/>
interlanRoute Configure Inter-LAN routing <br/>
ipbindmac Configure IP bind Mac <br/>
iprouting Configure iprouting section <br/>
pf Configure profile on LAN <br/>
route Configure static route section <br/>
route6 Configure static route6 section <br/>
switch Configure port <br/>
<br/>
<br/>
<br/>
For future reference, this is the command for binding IP via telnet on the 2960.<br/>
<br/>
ipbindmac add ip 10.1.2.2 macaddr 00:13:20:38:48:92 10_1_2_2
Please Log in or Create an account to join the conversation.
- orderwise
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank yous received: 0
16 May 2013 15:37 #76228
by orderwise
Replied by orderwise on topic Re: Draytek 2960 Telnet Commands
For future reference, once you've added in your bindings via telnet, then you need to run the command "apply".<br/>
<br/>
If you don't they will appear in the web gui, and it will work as normal, that is until you reboot and the bindings are lost.
<br/>
If you don't they will appear in the web gui, and it will work as normal, that is until you reboot and the bindings are lost.
Please Log in or Create an account to join the conversation.
Moderators: Admin3, Christopher
