cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
425
Views
3
Helpful
10
Replies

How to change EWC AP country code over SSH ?

jguittet
Level 1
Level 1

Hello,

Before updating my Cisco C9120AXE (fw was 16.x) I was used to change the country code with the following commands over SSH:

  • enable
  • configure terminal
  • ap dot11 24ghz shutdown
  • ap dot11 5ghz shutdown
  • ap country <country_code>
  • no ap dot11 24ghz shutdown
  • no ap dot11 5ghz shutdown
  • end

And it was working as expected.

Now I have upgraded the AP to 17.9 and the configuration of this AP has been reseted. I would like to change the country code over SSH. The above sequence is not working anymore.

I have read in the manual that "ap country" is replaced by "wireless country", but it's not enough to get it working.

Any advice to do that ? Maybe some settings I need to change first to allow the commands to be executed ?

Thanks for feedbacks,

Joel

 

1 Accepted Solution

Accepted Solutions

jguittet
Level 1
Level 1

@marce1000 

Actually this displays:

ewc#show running-config | inc country
wireless country DE
wireless country GB
ap country FR

So not good. Let suppose I remove the not wanted country codes and I have one line only.

Then, if my understanding is correct I should do each time the following to change the country code over ssh:

  • wireless country <new country code>
  • no wireless country <old country code>

Correct ?

View solution in original post

10 Replies 10

marce1000
VIP
VIP

 

  - Could you tell why  "wireless country... " is not working for you and or what errors do you get , a screenshot could be helpful ,

 M.



-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '

jguittet
Level 1
Level 1

I do "show ap name AP84F1.4783.21FC config general" to read the current country code:

 

Cisco AP Name : AP84F1.4783.21FC
=================================================

Cisco AP Identifier : 84f1.47ad.1160
Country Code : Multiple Countries : FR,DE,GB
Regulatory Domain Allowed by Country : 802.11bg:-E 802.11a:-E 802.11 6GHz:-E
AP Country Code : DE - Germany

 

Then I do the following to change it:

  • enable
  • configure terminal
  • wireless country FR
  • end

Then again "show ap name AP84F1.4783.21FC config general" to read the current country code:

 

Cisco AP Name : AP84F1.4783.21FC
=================================================

Cisco AP Identifier : 84f1.47ad.1160
Country Code : Multiple Countries : FR,DE,GB
Regulatory Domain Allowed by Country : 802.11bg:-E 802.11a:-E 802.11 6GHz:-E
AP Country Code : DE - Germany

 

Not changed

If I change the country code in the web interface it's working. Not over SSH. I need to do it over SSH.

 

Thanks

 

  - You may need the no wireless country DE , to remove the not needed country codes ,

 M.



-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '

jguittet
Level 1
Level 1

Not bad, this is working to go back to FR, but then it's not working to go back to DE again.

The purpose is to change remotely between several values so I need both directions.

Thanks

 

  - Unclear that for me . I think you can also separate them with comma's when needing different country codes to be supported on the controller, however to check if there are no residual commands left over from previous attempts very with :
                       # show running-config | inc country

               Make sure there is only a single line  left over when comma's are used.

 M.



-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '

srimal99
Level 1
Level 1

@jguittet 
config t
wireless country code <Country short name > Ex :United states :US Singapore : SG
end
wr>

show wrieless country configured  - verifty the command 

jguittet
Level 1
Level 1

@marce1000 

Actually this displays:

ewc#show running-config | inc country
wireless country DE
wireless country GB
ap country FR

So not good. Let suppose I remove the not wanted country codes and I have one line only.

Then, if my understanding is correct I should do each time the following to change the country code over ssh:

  • wireless country <new country code>
  • no wireless country <old country code>

Correct ?

 

 - Yes, that is correct,

 M.



-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '

jguittet
Level 1
Level 1

Previous sequence confirmed This is working as expected.

Thanks @marce1000 

Rich R
VIP
VIP

https://www.cisco.com/c/en/us/td/docs/wireless/controller/9800/17-9/config-guide/b_wl_17_9_cg/m_country_codes.html

AP specific country is set on the AP directly (from CLI as in link above) and also can be set in the AP profile:
ap profile <profile-name>
 country XX

 

Review Cisco Networking for a $25 gift card