CCNA基本命令

lei-csr1#show run int g1
Building configuration...

Current configuration : 107 bytes
!
interface GigabitEthernet1
 no ip address
 shutdown
 negotiation auto
 no mop enabled
 no mop sysid
end


lei-csr1#sh ip int b
Interface              IP-Address      OK? Method Status                Protocol
GigabitEthernet1       unassigned      YES unset  administratively down down    
GigabitEthernet2       unassigned      YES unset  administratively down down    
GigabitEthernet3       10.124.19.181   YES manual up                    up      
lei-csr1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
lei-csr1(config)#do sh run int g1
Building configuration...

Current configuration : 107 bytes
!
interface GigabitEthernet1
 no ip address
 shutdown
 negotiation auto
 no mop enabled
 no mop sysid
end

lei-csr1#sh ip int brief 
Interface              IP-Address      OK? Method Status                Protocol
GigabitEthernet1       unassigned      YES unset  administratively down down    
GigabitEthernet2       unassigned      YES unset  administratively down down    
GigabitEthernet3       10.124.19.181   YES manual up                    up      
lei-csr1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
lei-csr1(config)#int g1
lei-csr1(config-if)#do sh run int g1
Building configuration...

Current configuration : 107 bytes
!
interface GigabitEthernet1
 no ip address
 shutdown
 negotiation auto
 no mop enabled
 no mop sysid
end

lei-csr1(config-if)#no shutdown 
lei-csr1(config-if)#do sh run int g1
Building configuration...

Current configuration : 97 bytes
!
interface GigabitEthernet1
 no ip address
 negotiation auto
 no mop enabled
 no mop sysid
end

lei-csr1(config-if)#do sh ip int b
Interface              IP-Address      OK? Method Status                Protocol
GigabitEthernet1       unassigned      YES unset  up                    up      
GigabitEthernet2       unassigned      YES unset  administratively down down    
GigabitEthernet3       10.124.19.181   YES manual up                    up      

lei-csr1#sh ip int b
Interface              IP-Address      OK? Method Status                Protocol
GigabitEthernet1       unassigned      YES unset  up                    up      
GigabitEthernet2       unassigned      YES unset  administratively down down    
GigabitEthernet3       10.124.19.181   YES manual up                    up      
lei-csr1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
lei-csr1(config)#int g1
lei-csr1(config-if)#ip add 12.0.0.1 255.255.255.0
lei-csr1(config-if)#end

lei-csr1#sh ip int b
Interface              IP-Address      OK? Method Status                Protocol
GigabitEthernet1       12.0.0.1        YES manual up                    up      
GigabitEthernet2       unassigned      YES unset  administratively down down    
GigabitEthernet3       10.124.19.181   YES manual up                    up      
lei-csr1#sh run int g1
Building configuration...

Current configuration : 117 bytes
!
interface GigabitEthernet1
 ip address 12.0.0.1 255.255.255.0
 negotiation auto
 no mop enabled
 no mop sysid
end
lei-csr1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
lei-csr1(config)#int g1
lei-csr1(config-if)#no ip add
lei-csr1(config-if)#end
lei-csr1#Connection closed by foreign host.


猜你喜欢

转载自blog.csdn.net/Strive_0902/article/details/80495227
今日推荐