Cấu hình SSH cho switch cisco
Tạo mật khẩu enable:
1 2 3 |
#enable #enable secret <PASSWORD> #conf t |
Gán địa chỉ IP quản trị và VLAN quản trị
1 2 3 |
config#ip default-gateway <FIREWALL INTERFACE IP ADDRESS> config#interface vlan <MANAGEMENT VLAN ID> config(int vlan id)#ip address <IP MANAGEMENT> <SUBNET MASK> |
Cấu hình hostname và domain name.
1 2 |
config#hostname <HOSTNAME> config#domain-name <tên gì đó ví dụ hostname.com> |
gen key RSA cho SSH
1 2 3 4 5 6 7 8 9 10 |
ByteSoft(config)# crypto key generate rsa The name for the keys will be: OTGswitch.OTG.com Choose the size of the key modulus in the range of 360 to 2048 for your General Purpose Keys. Choosing a key modulus greater than 512 may take a few minutes. How many bits in the modulus [512]: mặc định 512, Chọn 1024 nếu thích bảo mật hơn |
Bật […]