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

			
			





原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
JavaWeb - No URLs will be polled as dynamic configuration sources
JavaWeb - No URLs will be polled as dynamic configuration sources
650 0
JavaWeb - No URLs will be polled as dynamic configuration sources
|
监控 Dubbo 搜索推荐
No application config found or it‘s not a valid config! Please add <dubbo:application name=“...“ />
No application config found or it‘s not a valid config! Please add <dubbo:application name=“...“ />
1290 1
|
6月前
|
Java 数据库连接 数据库
@Configuration大悟!
@Configuration大悟!
|
6月前
|
XML Java 数据格式
|
域名解析 XML 网络协议
freeswitch conf/sip_profiles/internal.xml 说明(上)
conf/sip_profiles/internal.xml说明 internal.xml
1050 0
|
网络协议 搜索推荐 数据库连接
freeswitch conf/sip_profiles/internal.xml 说明(下)
conf/sip_profiles/internal.xml说明 internal.xml