TM-con
inter g 1/0/1
port link-mode route
y
ip addr 192.168.52.2 24
quit
inter vlan-inter 1
ip add 192.168.2.2 24
quit
ip http ena
ip https ena
telne server ena
netconf soap http ena
lldp global ena
local-user admin
password simple dtszkb2026
service-type telnet http https
authorization-attribute user-role network-admin
quit
line vty 0 63
authentication-mode scheme
quit
smartmc tm username admin password simple dtszkb2026 ena
y
inter g 1/0/1
smartmc outbound
quit
TC-CON
inter vlan-inter 1
ip add 192.168.2.3 24
quit
ip http ena
ip https ena
telnet server ena
netconf soap http ena
lldp global ena
local-user admin
password simple dtszkb2026
service-type telnet http https
authorization-attribute user-role network-admin
quit
line vty 0 63
authentication-mode scheme
quit
smartmc tc ena
这是我完全按照官方教程写下来的配置,连IP都没变,为什么管理端就是发现不了成员呢?我用网线将TM的2口与TC的2口相连,TM的出接口没插任何网线,电脑与TM的3口相连,是我接线不对吗?
SmartMC网络的物理连接如图1-3所示,TM为管理设备,TC 1~TC 3为成员设备。通过自动方式建立SmartMC网络,在管理设备上配置接口Ten-GigabitEthernet1/0/1为SmartMC网络的出接口,并通过SmartMC组升级所有成员设备的配置文件。
· 所有成员设备的设备类型都相同,均为S6520X-EI-G系列设备。
· Host通过Ten-GigabitEthernet1/0/1接口连接到管理设备,Host和Ten-GigabitEthernet1/0/1接口的IP地址在网段192.168.56.0/24内。管理设备及各成员设备的Vlan-interface 1接口的IP地址在网段192.168.2.0/24内。
· FTP服务器的IP地址为192.168.2.1,用户名为admin,密码为hello12345。
· 配置文件名称为startup.cfg,存放在FTP服务器上。
图1-3 SmartMC配置举例组网图
(1) 配置TC 1。
# 配置VLAN1接口。
<TC1> system-view
[TC1] interface vlan-interface 1
[TC1-Vlan-interface1] ip address 192.168.2.3 24
[TC1-Vlan-interface1] quit
# 开启HTTP、HTTPS服务。
[TC1] ip http enable
[TC1] ip https enable
# 开启Telnet服务。
[TC1] telnet server enable
# 开启基于HTTP的NETCONF over SOAP功能。
[TC1] netconf soap http enable
# 开启基于SSH的NETCONF over SSH功能。
[TC1] netconf ssh server enable
# 全局开启LLDP功能。
[TC1] lldp global enable
# 配置本地用户admin,密码为admin、服务类型为Telnet、HTTP和HTTPS、RBAC角色为network-admin。设置密码前,先降低设备对本地用户密码复杂度的要求。
[TC1] local-user admin
[TC1-luser-manage-admin] password simple admin
[TC1-luser-manage-admin] service-type telnet http https ssh
[TC1-luser-manage-admin] authorization-attribute user-role network-admin
[TC1-luser-manage-admin] quit
# 配置admin用户在SSH方式登录时支持公钥认证,且公钥名为-smartmc-publickey-。
[TC1] ssh user admin service-type netconf authentication-type publickey assign publickey -smartmc-publickey-
# 配置VTY用户线0~63的认证方式为scheme。
[TC1] line vty 0 63
[TC1-line-vty0-63] authentication-mode scheme
[TC1-line-vty0-63] quit
# 开启SmartMC功能,并配置设备角色为成员设备。
[TC1] smartmc tc enable
(2) 配置TC 2和TC 3。请参考配置TC 1的方法配置TC 2和TC 3,此处不再赘述。
(3) 配置TM。
# 配置Ten-GigabitEthernet1/0/1接口。
<TM> system-view
[TM] interface ten-gigabitethernet 1/0/1
[TM-Ten-GigabitEthernet1/0/1] port link-mode route
[TM-Ten-GigabitEthernet1/0/1] ip address 192.168.52.2 24
[TM-Ten-GigabitEthernet1/0/1] quit
# 配置VLAN 1接口。
[TM] interface vlan-interface 1
[TM-Vlan-interface1] ip address 192.168.2.2 24
[TM-Vlan-interface1] quit
# 开启HTTP、HTTPS服务。
[TM] ip http enable
[TM] ip https enable
# 开启Telnet服务。
[TM] telnet server enable
# 开启基于HTTP的NETCONF over SOAP功能。
[TM] netconf soap http enable
# 开启基于SSH的NETCONF over SSH功能。
[TM] netconf ssh server enable
# 全局开启LLDP功能。
[TM] lldp global enable
# 配置本地用户admin,密码为hello12345、服务类型为Telnet、HTTP和HTTPS、RBAC角色为network-admin。
[TM] local-user admin
[TM-luser-manage-admin] password simple hello12345
[TM-luser-manage-admin] service-type telnet http https ssh
[TM-luser-manage-admin] authorization-attribute user-role network-admin
[TM-luser-manage-admin] quit
# 配置VTY用户线0~63的认证方式为scheme。
[TM] line vty 0 63
[TM-line-vty0-63] authentication-mode scheme
[TM-line-vty0-63] quit
# 开启SmartMC功能并配置设备的角色为管理设备,用户名为admin,明文密码为hello12345。
[TM] smartmc tm username admin password simple hello12345 enable
# 将接口Ten-GigabitEthernet1/0/1配置为SmartMC网络的出接口。
[TM] interface ten-gigabitethernet 1/0/1
[TM-Ten-GigabitEthernet1/0/1] smartmc outbound
[TM-Ten-GigabitEthernet1/0/1] quit
# 配置FTP服务器信息,指定FTP服务器的IP为192.168.2.1,用户名为admin,明文密码为hello12345。
[TM] smartmc ftp-server 192.168.2.1 username admin password simple hello12345
# 创建SmartMC组S1,并进入SmartMC组视图。
[TM] smartmc group S1
# 配置SmartMC组的匹配规则为按照IP地址匹配成员设备。
[TM-smartmc-group-S1] match ip-address 192.168.2.0 24
# 配置SmartMC组使用的配置文件为startup.cfg。
[TM-smartmc-group-S1] startup-configuration startup.cfg
[TM-smartmc-group-S1] quit
# 执行立即升级操作。
[TM] smartmc upgrade startup-configuration group S1 file startup.cfg
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
妈的,太坑了,将TC的密码改成admin就能发现。感谢感谢