c3600路由器查看和修改ip地址
程序员文章站
2024-03-20 23:42:10
...
1、可以先用下面的命令查看运行的网口:
show running-config
会显示下面的信息:
R1#show running-config
Building configuration...
Current configuration : 1212 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
!
!
ip cef
no ip domain lookup
!
!
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
archive
log config
hidekeys
!
!
!
!
ip tcp synwait-time 5
!
!
!
!
interface FastEthernet0/0
ip address 192.168.254.4 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
--More--
*Mar 1 00:42:04.095: %IP-4-DUPADDR: Duplicate address 192.168.254.4 on FastEthernet0/0, sourced by cc02.2f98 .0000
R1#
可以看到FastEthernet0/0接口的ip地址了。
如果知道网卡的设备文件名,直接执行命令:
show int fa0/0
R1#show int fa0/0
FastEthernet0/0 is up, line protocol is up
Hardware is AmdFE, address is cc01.2718.0000 (bia cc01.2718.0000)
Internet address is 192.168.254.4/24
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s, 100BaseTX/FX
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
2379 packets input, 157987 bytes
Received 2374 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog
0 input packets with dribble condition detected
2699 packets output, 177751 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
R1#
也能看到地址。
2、修改地址:
完成。