DrayTek UK Users' Community Forum

Help, Advice and Solutions from DrayTek Users

Draytek 2960 Telnet Commands

  • orderwise
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
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.
I'm logged into configure-terminal-lan

The command I am trying to use is in the format:

ipbindmac add 10.1.2.2 00:13:20:38:48:92 test

with 10.1.2.2 being the IP, 00:13:20:38:48:92 the mac address, and test being the name, obviously

This does not work, and simply returns to the next line. Is the data in the correct format?

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.

The telnet command reference was last dated 2009, and so I suspect that something has changed since that was last updated.

Any help would be appreciated.

Please Log in or Create an account to join the conversation.

More
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)

here if will help you

2.4.21 ip bindmac
This command allows users to set IP-MAC binding for LAN host.
ip bandmac on
ip bandmac off
ip bandmac strict_on
ip bandmac show
ip bandmac add [IP][MAC]
ip bandmac del [IP]/all
Syntax Description
on It means to turn on IP bandmac policy. Even the IP is not in the
policy table, it can still access into network.
off It means to turn off all the bindmac policy.
strict_on It means that only those IP address in IP bindmac policy table can
access into network.
show It means to display the IP address and MAC address of the pair of
binded one.
add It means to add one ip bindmac.
del It means to delete one ip bindmac.
IP It means to type the IP address for binding with specified MAC
address.
MAC It means to type the MAC address for binding with the IP address
specified.
All It means to delete all the IP bindmac settings.
Example
>ip bindmac add 192.168.1.46 00:50:7f:22:33:55
>ip bindmac show
ip bind mac function is turned ON

Please Log in or Create an account to join the conversation.

  • orderwise
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
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.

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.

Figured it out in the end by perseverance.:

configure terminal lan ? gives :

Vigor2960@config-t-lan#

apply Apply setting

.. Go back to upper layer menu
exit Go back to config terminal menu
interlanRoute Configure Inter-LAN routing
ipbindmac Configure IP bind Mac
iprouting Configure iprouting section
pf Configure profile on LAN
route Configure static route section
route6 Configure static route6 section
switch Configure port



For future reference, this is the command for binding IP via telnet on the 2960.

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
  • Junior Member
More
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".

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: ChrisSami