Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Search | Email

33.4. ip configuration

33.4.1. interface

			
Array(config)#show interface name
Unknown interface name.

Array(config)#show interface
port1(port1): flags=8843<UP,BROADCAST,RUNNING,SIMPLEX> mtu 1500
        inet 192.168.3.20 netmask 0xffffff00 broadcast 192.168.3.255
        ether 00:25:90:05:6d:82
        media: autoselect (1000baseT <full-duplex>)
        status: active
        webwall status: OFF
        Hardware is i82573l
        Input queue: 311/512 (size/max)
                total: 148722 packets, good: 148722 packets, 14020742 bytes
                broadcasts: 134870, multicasts: 268
                84658 64 bytes, 53370 65-127 bytes,7071 128-255 bytes
                1300 255-511 bytes,2294 512-1023 bytes,29 1024-1522 bytes
                0 input errors
                0 runts, 0 giants, 0 Jabbers, 0 CRCs
                0 Flow Control, 0 Fragments, 0 Receive errors
                0 Driver dropped, 0 Frame, 0 Lengths, 0 No Buffers
                0 overruns, Carrier extension errors: 0
        Output queue: 2/512 (size/max)
                total: 41587 packets, good:  41587 packets, 41121234 bytes
                broadcasts: 1, multicasts: 0
                1678 64 bytes, 8223 65-127 bytes,219 128-255 bytes
                3984 255-511 bytes,3020 512-1023 bytes,24463 1024-1522 bytes
                0 output errors
                0 Collisions, 0 Late collisions, 0 Deferred
                0 Single Collisions, 0 Multiple Collisions, 0 Excessive collisions
        0 lost carrier, 0 WDT reset
        packet drop (not permit): 0
                tcp 0          udp 0          icmp 0
        packet drop (deny): 0
                tcp 0          udp 0          icmp 0
        5 minute input rate 0 bits/sec, 0 packets/sec
        5 minute output rate 0 bits/sec, 0 packets/sec
port2(port2): flags=8842<BROADCAST,RUNNING,SIMPLEX> mtu 1500
        ether 00:25:90:05:6d:83
        media: autoselect (1000baseT <full-duplex>)
        status: active
        webwall status: OFF
        Hardware is i82573l
        Input queue: 248/512 (size/max)
                total: 134862 packets, good: 134862 packets, 11584332 bytes
                broadcasts: 134862, multicasts: 0
                74160 64 bytes, 52527 65-127 bytes,6903 128-255 bytes
                1262 255-511 bytes,10 512-1023 bytes,0 1024-1522 bytes
                0 input errors
                0 runts, 0 giants, 0 Jabbers, 0 CRCs
                0 Flow Control, 0 Fragments, 0 Receive errors
                0 Driver dropped, 0 Frame, 0 Lengths, 0 No Buffers
                0 overruns, Carrier extension errors: 0
        Output queue: 0/512 (size/max)
                total: 0 packets, good:  0 packets, 0 bytes
                broadcasts: 0, multicasts: 0
                0 64 bytes, 0 65-127 bytes,0 128-255 bytes
                0 255-511 bytes,0 512-1023 bytes,0 1024-1522 bytes
                0 output errors
                0 Collisions, 0 Late collisions, 0 Deferred
                0 Single Collisions, 0 Multiple Collisions, 0 Excessive collisions
        0 lost carrier, 0 WDT reset
        packet drop (not permit): 0
                tcp 0          udp 0          icmp 0
        packet drop (deny): 0
                tcp 0          udp 0          icmp 0
        5 minute input rate 0 bits/sec, 0 packets/sec
        5 minute output rate 0 bits/sec, 0 packets/sec
port3(port3): flags=8842<BROADCAST,RUNNING,SIMPLEX> mtu 1500
        ether 00:25:90:05:6d:80
        media: autoselect (1000baseT <full-duplex>)
        status: active
        webwall status: OFF
        Hardware is i82573e_iamt
        Input queue: 248/512 (size/max)
                total: 134859 packets, good: 134859 packets, 11584140 bytes
                broadcasts: 134859, multicasts: 0
                74157 64 bytes, 52527 65-127 bytes,6903 128-255 bytes
                1262 255-511 bytes,10 512-1023 bytes,0 1024-1522 bytes
                0 input errors
                0 runts, 0 giants, 0 Jabbers, 0 CRCs
                0 Flow Control, 0 Fragments, 0 Receive errors
                0 Driver dropped, 0 Frame, 0 Lengths, 0 No Buffers
                0 overruns, Carrier extension errors: 0
        Output queue: 0/512 (size/max)
                total: 0 packets, good:  0 packets, 0 bytes
                broadcasts: 0, multicasts: 0
                0 64 bytes, 0 65-127 bytes,0 128-255 bytes
                0 255-511 bytes,0 512-1023 bytes,0 1024-1522 bytes
                0 output errors
                0 Collisions, 0 Late collisions, 0 Deferred
                0 Single Collisions, 0 Multiple Collisions, 0 Excessive collisions
        0 lost carrier, 0 WDT reset
        packet drop (not permit): 0
                tcp 0          udp 0          icmp 0
        packet drop (deny): 0
                tcp 0          udp 0          icmp 0
        5 minute input rate 0 bits/sec, 0 packets/sec
        5 minute output rate 0 bits/sec, 0 packets/sec
port4(port4): flags=8842<BROADCAST,RUNNING,SIMPLEX> mtu 1500
        ether 00:25:90:05:6d:81
        media: autoselect (1000baseT <full-duplex>)
        status: active
        webwall status: OFF
        Hardware is i82573l
        Input queue: 248/512 (size/max)
                total: 134859 packets, good: 134859 packets, 11584140 bytes
                broadcasts: 134859, multicasts: 0
                74157 64 bytes, 52527 65-127 bytes,6903 128-255 bytes
                1262 255-511 bytes,10 512-1023 bytes,0 1024-1522 bytes
                0 input errors
                0 runts, 0 giants, 0 Jabbers, 0 CRCs
                0 Flow Control, 0 Fragments, 0 Receive errors
                0 Driver dropped, 0 Frame, 0 Lengths, 0 No Buffers
                0 overruns, Carrier extension errors: 0
        Output queue: 0/512 (size/max)
                total: 0 packets, good:  0 packets, 0 bytes
                broadcasts: 0, multicasts: 0
                0 64 bytes, 0 65-127 bytes,0 128-255 bytes
                0 255-511 bytes,0 512-1023 bytes,0 1024-1522 bytes
                0 output errors
                0 Collisions, 0 Late collisions, 0 Deferred
                0 Single Collisions, 0 Multiple Collisions, 0 Excessive collisions
        0 lost carrier, 0 WDT reset
        packet drop (not permit): 0
                tcp 0          udp 0          icmp 0
        packet drop (deny): 0
                tcp 0          udp 0          icmp 0
        5 minute input rate 0 bits/sec, 0 packets/sec
        5 minute output rate 0 bits/sec, 0 packets/sec

bond1(bond1): flags=8843<UP,BROADCAST,RUNNING,SIMPLEX> mtu 1500
        ether 00:00:00:00:00:00
        status: no carrier
        webwall status: OFF
        packet drop(output error): 0
        packet drop(not permit): 0
                tcp 0 udp 0 icmp 0
        packet drop(deny): 0
                tcp 0 udp 0 icmp 0

bond2(bond2): flags=8843<UP,BROADCAST,RUNNING,SIMPLEX> mtu 1500
        ether 00:00:00:00:00:00
        status: no carrier
        webwall status: OFF
        packet drop(output error): 0
        packet drop(not permit): 0
                tcp 0 udp 0 icmp 0
        packet drop(deny): 0
                tcp 0 udp 0 icmp 0

bond3(bond3): flags=8843<UP,BROADCAST,RUNNING,SIMPLEX> mtu 1500
        ether 00:00:00:00:00:00
        status: no carrier
        webwall status: OFF
        packet drop(output error): 0
        packet drop(not permit): 0
                tcp 0 udp 0 icmp 0
        packet drop(deny): 0
                tcp 0 udp 0 icmp 0
			
			
			
Array(config)#show interface outside
outside(port1): flags=8843<UP,BROADCAST,RUNNING,SIMPLEX> mtu 1500
        inet 192.168.3.20 netmask 0xffffff00 broadcast 192.168.3.255
        ether 00:25:90:05:6d:82
        media: autoselect (1000baseT <full-duplex>)
        status: active
        webwall status: OFF
        Hardware is i82573l
        Input queue: 238/512 (size/max)
                total: 232641 packets, good: 232641 packets, 21102806 bytes
                broadcasts: 215679, multicasts: 424
                132773 64 bytes, 84622 65-127 bytes,10781 128-255 bytes
                2106 255-511 bytes,2330 512-1023 bytes,29 1024-1522 bytes
                0 input errors
                0 runts, 0 giants, 0 Jabbers, 0 CRCs
                0 Flow Control, 0 Fragments, 0 Receive errors
                0 Driver dropped, 0 Frame, 0 Lengths, 0 No Buffers
                0 overruns, Carrier extension errors: 0
        Output queue: 2/512 (size/max)
                total: 51900 packets, good:  51900 packets, 42371369 bytes
                broadcasts: 1, multicasts: 0
                3355 64 bytes, 16623 65-127 bytes,274 128-255 bytes
                4012 255-511 bytes,3056 512-1023 bytes,24580 1024-1522 bytes
                0 output errors
                0 Collisions, 0 Late collisions, 0 Deferred
                0 Single Collisions, 0 Multiple Collisions, 0 Excessive collisions
        0 lost carrier, 0 WDT reset
        packet drop (not permit): 0
                tcp 0          udp 0          icmp 0
        packet drop (deny): 0
                tcp 0          udp 0          icmp 0
        5 minute input rate 0 bits/sec, 0 packets/sec
        5 minute output rate 0 bits/sec, 0 packets/sec

Array(config)#show interface inside
inside(port2): flags=8842<BROADCAST,RUNNING,SIMPLEX> mtu 1500
        ether 00:25:90:05:6d:83
        media: autoselect (1000baseT <full-duplex>)
        status: active
        webwall status: OFF
        Hardware is i82573l
        Input queue: 289/512 (size/max)
                total: 215833 packets, good: 215833 packets, 18440668 bytes
                broadcasts: 215833, multicasts: 0
                119845 64 bytes, 83292 65-127 bytes,10610 128-255 bytes
                2061 255-511 bytes,25 512-1023 bytes,0 1024-1522 bytes
                0 input errors
                0 runts, 0 giants, 0 Jabbers, 0 CRCs
                0 Flow Control, 0 Fragments, 0 Receive errors
                0 Driver dropped, 0 Frame, 0 Lengths, 0 No Buffers
                0 overruns, Carrier extension errors: 0
        Output queue: 0/512 (size/max)
                total: 0 packets, good:  0 packets, 0 bytes
                broadcasts: 0, multicasts: 0
                0 64 bytes, 0 65-127 bytes,0 128-255 bytes
                0 255-511 bytes,0 512-1023 bytes,0 1024-1522 bytes
                0 output errors
                0 Collisions, 0 Late collisions, 0 Deferred
                0 Single Collisions, 0 Multiple Collisions, 0 Excessive collisions
        0 lost carrier, 0 WDT reset
        packet drop (not permit): 0
                tcp 0          udp 0          icmp 0
        packet drop (deny): 0
                tcp 0          udp 0          icmp 0
        5 minute input rate 0 bits/sec, 0 packets/sec
        5 minute output rate 0 bits/sec, 0 packets/sec
			
			

33.4.2. interface name

			
interface name <interface_ID> <interface_name>

Array(config)#interface name port1 outside
The interface's name has been changed from "port1" to "outside".

Array(config)#interface name port2 inside
The interface's name has been changed from "port2" to "inside".

Array(config)#interface name port3 dmz
The interface's name has been changed from "port3" to "dmz".
			
			

33.4.3. interface speed

			
interface speed <interface_ID> <speed_option>

interface_ID 預設的序號為(port1,port2,port3,port4,port5以及port6)。
speed_option 速度可以分為10兆半雙工,100兆半雙工,100兆全雙工,1000兆全雙工或自適應
			
			

33.4.4. ip address

			
Array(config)# ip address "port1" 192.168.3.20 255.255.255.0

Array(config)#show ip address
ip address "port1" 192.168.3.20 255.255.255.0
			
			

33.4.5. bond configuration

#bond configuration
bond interface "bond1" "port1" 1
bond interface "bond1" "port2" 1
ip address "bond1" 172.16.0.9 255.255.255.0
			

33.4.6. ip nameserver

			
Array(config)#ip nameserver 208.67.222.222

Array(config)#ip nameserver 208.67.220.220

Array(config)# show ip nameserver
name server 208.67.222.222
name server 208.67.220.220