Got it

Distribute different options to different users

Created: Mar 23, 2021 09:47:21Latest reply: Sep 25, 2021 02:24:26 315 3 0 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hi all,

Our users have two types of devices.  We need to distribute different options to different devices. That is, when user 1 and user 2 access the network through the same BAS interface, domain, and IP address pool, can the following conditions be met?

Option 42 is transmitted to user 1; Option 43 is not transmitted to user 1.

Option 43 is transmitted to user 2; Option 42 is not transmitted to user 2.


The configuration is follows:

#

ip pool test bas local

 gateway xx.xx.xx.xx 255.255.255.248

 section 0 xx.xx.xx.xx xx.xx.xx.xx 

 dns-server xx.xx.xx.xx 

 lease 0 0 10

 option 42 ip xx.xx.xx.xx

 option 43 hex 01 xx xx xx xx xx xx xx xx xx xx

 option force-reply 42 43

 frame-ip lease manage

#

ip pool-group dhcp-pool-static bas

ip-pool dhcp-pool-static

#

domain test

  authentication-scheme radius

  accounting-scheme radius

  radius-server group radius 

  ip-pool dhcp-pool-static

  dns primary-ip xx.xx.xx.xx 

  dns second-ip xx.xx.xx.xx 

  user-group group-policy-internet

  quota-out online

#

interface Eth-Trunk11.32

statistic enable

user-vlan 210 qinq 1996

remote-backup-profile xx

bas

#

  access-type layer2-subscriber default-domain test

  client-option82

  option-61 hardware-type 0

  option82-relay-mode include allvalue

  dhcp lease-proxy renew-packet through-time 5

  authentication-method bind

  arp-proxy

  user detect retransmit 3 interval 30

  dhcp reply trust broadcast-flag

#


Featured Answers

Recommended answer

Popeye_Wang
Admin Created Mar 23, 2021 09:48:47

Hello,

It doesn't support like this. Instead, you have to use two IP pools, and make user1 online from IP pool test1, and make user2 online from IP pool test2. 

#

ip pool test1 bas local

 option 42 ip xx.xx.xx.xx

#

ip pool test2 bas local

option 43 hex 01 xx xx xx xx xx xx xx xx xx xx

#


View more
  • x
  • convention:

Sokrin
Sokrin Created Sep 25, 2021 02:24:17 (0) (0)
 
All Answers

Hello,

It doesn't support like this. Instead, you have to use two IP pools, and make user1 online from IP pool test1, and make user2 online from IP pool test2. 

#

ip pool test1 bas local

 option 42 ip xx.xx.xx.xx

#

ip pool test2 bas local

option 43 hex 01 xx xx xx xx xx xx xx xx xx xx

#


View more
  • x
  • convention:

Sokrin
Sokrin Created Sep 25, 2021 02:24:17 (0) (0)
 
nice
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.