配接口地址
R1:
Router_config#host R1
R1_config#INT L0
R1_config_l0#ip add 1.1.1.1 255.255.255.255
R1_config_l0#int g0/0
R1_config_g0/0#ip add 10.1.1.1 255.255.255.0
R1_config_g0/0#no shut
R2:
Router_config#host R2
R2_config#int l0
R2_config_l0#ip add 2.2.2.2 255.255.255.0
R2_config_l0#ip add 2.2.2.2 255.255.255.255
R2_config_l0#int g0/0
R2_config_g0/0#ip add 10.1.1.2 255.255.255.0
R2_config_g0/0#int g0/1
R2_config_g0/1#ip add 10.1.2.1 255.255.255.0
SW1:
CS6200-28X-EI(config)#host SW1
SW1(config)#vlan 1000
SW1(config-vlan1000)#swi int eth1/0/1
Set the port Ethernet1/0/1 access vlan 1000 successfully
SW1(config-vlan1000)#exit
SW1(config)#int vlan 1000
SW1(config-if-vlan1000)#ip add 10.1.2.2 255.255.255.0
R1,R2 上配置OSPF