HCNA配置接口IP地址
1、拓扑图
2、R1配置
The device is running! <Huawei>sys
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysn
[Huawei]sysname r1
[r1]int
[r1]interface ?
Bridge-if Bridge-if interface
Dialer Dialer interface
Eth-Trunk Ethernet-Trunk interface
GigabitEthernet GigabitEthernet interface
Ima-group ATM-IMA interface
LoopBack LoopBack interface
MFR MFR interface
Mp-group Mp-group interface
NULL NULL interface
Tunnel Tunnel interface
Virtual-Ethernet Virtual-Ethernet interface
Virtual-Template Virtual-Template interface
Vlanif Vlan interface
Wlan-Ess Wlan-Ess interface
[r1]dis int
[r1]dis interface
GigabitEthernet0// current state : UP
Line protocol current state : DOWN
Description:HUAWEI, AR Series, GigabitEthernet0// Interface
Route Port,The Maximum Transmit Unit is
Internet protocol processing : disabled
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc3e-555d
Last physical up time : -- :: UTC-:
Last physical down time : -- :: UTC-:
Current system time: -- ::-:
Port Mode: COMMON COPPER
Speed : , Loopback: NONE
Duplex: FULL, Negotiation: ENABLE
Mdi : AUTO
Last seconds input rate bits/sec, packets/sec
Last seconds output rate bits/sec, packets/sec
Input peak rate bits/sec,Record time: -
Output peak rate bits/sec,Record time: - Input: packets, bytes
Unicast: , Multicast:
Broadcast: , Jumbo:
Discard: , Total Error: CRC: , Giants: [r1]int
[r1]interface g
[r1]interface GigabitEthernet
[r1]interface GigabitEthernet //
[r1-GigabitEthernet0//]ip add
[r1-GigabitEthernet0//]ip address 12.1.1.1 255.255.255.0
[r1-GigabitEthernet0//]
Dec ::-: r1 %%01IFNET//LINK_STATE(l)[]:The line protocol IP
on the interface GigabitEthernet0// has entered the UP state.
[r1-GigabitEthernet0//]q
[r1]dis ip int br
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is
The number of interface that is DOWN in Physical is
The number of interface that is UP in Protocol is
The number of interface that is DOWN in Protocol is Interface IP Address/Mask Physical Protocol
GigabitEthernet0// 12.1.1.1/ up up
GigabitEthernet0// unassigned down down
GigabitEthernet0// unassigned down down
NULL0 unassigned up up(s)
[r1]
3、R2配置
Configuration console exit, please press any key to log on <Huawei>sys
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysn
[Huawei]sysname R2
[R2]int g
[R2]int GigabitEthernet //
[R2-GigabitEthernet0//]ip add 12.1.1.2
Error: The address already exists.
[R2-GigabitEthernet0//]ip add 12.1.1.3
[R2-GigabitEthernet0//]q
[R2]dis ip int
[R2]dis ip interface br
[R2]dis ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is
The number of interface that is DOWN in Physical is
The number of interface that is UP in Protocol is
The number of interface that is DOWN in Protocol is Interface IP Address/Mask Physical Protocol
GigabitEthernet0// 12.1.1.3/ up up
GigabitEthernet0// unassigned down down
GigabitEthernet0// unassigned down down
NULL0 unassigned up up(s)
[R2]
4、测试
Configuration console time out, please press any key to log on <r1>ping 12.1.1.2
PING 12.1.1.2: data bytes, press CTRL_C to break
Request time out
Request time out
Request time out --- 12.1.1.2 ping statistics ---
packet(s) transmitted
packet(s) received
100.00% packet loss <r1>
<r1>ping 12.1.1.3
PING 12.1.1.3: data bytes, press CTRL_C to break
Reply from 12.1.1.3: bytes= Sequence= ttl= time= ms
Reply from 12.1.1.3: bytes= Sequence= ttl= time= ms
Reply from 12.1.1.3: bytes= Sequence= ttl= time= ms
Reply from 12.1.1.3: bytes= Sequence= ttl= time= ms
Reply from 12.1.1.3: bytes= Sequence= ttl= time= ms --- 12.1.1.3 ping statistics ---
packet(s) transmitted
packet(s) received
0.00% packet loss
round-trip min/avg/max = // ms <r1>ping 12.1.1.3 ?
ip-forwarding Specify the request packet forward by IP
<cr> Please press ENTER to execute command
<r1>ping 12.1.1.3
PING 12.1.1.3: data bytes, press CTRL_C to break
Reply from 12.1.1.3: bytes= Sequence= ttl= time= ms
Reply from 12.1.1.3: bytes= Sequence= ttl= time= ms
Reply from 12.1.1.3: bytes= Sequence= ttl= time= ms
Reply from 12.1.1.3: bytes= Sequence= ttl= time= ms
Reply from 12.1.1.3: bytes= Sequence= ttl= time= ms --- 12.1.1.3 ping statistics ---
packet(s) transmitted
packet(s) received
0.00% packet loss
round-trip min/avg/max = // ms <r1>
[R2]ping 12.1.1.1
PING 12.1.1.1: data bytes, press CTRL_C to break
Reply from 12.1.1.1: bytes= Sequence= ttl= time= ms
Reply from 12.1.1.1: bytes= Sequence= ttl= time= ms
Reply from 12.1.1.1: bytes= Sequence= ttl= time= ms
Reply from 12.1.1.1: bytes= Sequence= ttl= time= ms
Reply from 12.1.1.1: bytes= Sequence= ttl= time= ms --- 12.1.1.1 ping statistics ---
packet(s) transmitted
packet(s) received
0.00% packet loss
round-trip min/avg/max = // ms
HCNA配置接口IP地址的更多相关文章
- linux配置网卡IP地址命令详细介绍及一些常用网络配置命令
linux配置网卡IP地址命令详细介绍及一些常用网络配置命令2010-- 个评论 收藏 我要投稿 Linux命令行下配置IP地址不像图形界面下那么方 便,完全需要我们手动配置,下面就给大家介绍几种配置 ...
- VMware中安装CentOS7网络配置静态IP地址,常用配置和工具安装
VMware中安装CentOS7网络配置静态IP地址,常用配置和工具安装在阿里云开源镜像地址下载镜像Index of /centos/7.2.1511/isos/x86_64/http://mirro ...
- 如何为CentOS 7配置静态IP地址
问题:在CentOS 7上,我想要将我其中一个网络接口从DHCP改为静态IP地址配置,如何才能永久为CentOS或RHEL 7上的网络接口分配静态IP地址? 如果你想要为CentOS 7中的某个网络接 ...
- VMware虚拟CentOS 6.5在NAT模式下配置静态IP地址及Xshell远程控制配置
VMware虚拟CentOS 6.5在NAT模式下配置静态IP地址及Xshell远程控制配置 标签: LinuxXshellCentOS 2016-10-15 04:58 127人阅读 评论(0) 收 ...
- 为CentOS 7配置静态IP地址及遇到的问题解决策略
为CentOS 7配置静态IP地址及遇到的问题解决策略 1. 为CentOS 7配置静态IP地址的两种方法 (原文地址:http://www.linuxidc.com/Linux/2014-10/10 ...
- 如何在Ubuntu Server 18.04 LTS中配置静态IP地址
安装Ubuntu Server 18.04后需要分配一个的静态IP地址.先前的LTS版本Ubuntu 16.04使用/etc/network/interfaces文件配置静态IP地址,但是Ubuntu ...
- CentOS 7配置静态IP地址的两种方法 来自:互联网
CentOS 7配置静态IP地址的两种方法 来自:互联网 时间:2021-01-12 阅读:4 如果你想要为CentOS 7中的某个网络接口设置静态IP地址,有几种不同的方法,这取决于你是否想要使用网 ...
- Ubuntu 为网卡配置静态IP地址
为网卡配置静态IP地址编辑文件/etc/network/interfaces:sudo vi /etc/network/interfaces并用下面的行来替换有关eth0的行:# The primar ...
- Ubuntu12.04配置静态ip地址
Ubuntu12.04配置静态ip地址 $sudo gedit /etc/network/interfaces 原有内容只有如下两行: auto lo iface lo inet loopback 向 ...
随机推荐
- Property 'XXX' not found on type java.lang.String解决方案
一,标签指令错误. 原指令标签: <%@ taglib prefix="c" uri="http://j ava.sun.com/jstl/core" % ...
- Educational Codeforces Round 7 B
Description You are given the current time in 24-hour format hh:mm. Find and print the time after a ...
- dedecms 的采集
http://www.360doc.com/content/14/0521/09/13870710_379547377.shtml http://www.360doc.com/content/14/0 ...
- 简述wcf应用
一.新建wcf 如下图:wcf可以简历俩种形式 1.库文件,就是一个类库文件,可以用windows服务或控制台开启. 2.服务应用程序,可以直接IIS上面发布. 二.库文件自动生成的类 接口类 usi ...
- Storm(1)-centos7下安装单机版Strom
1.所需软件: jdk8.zookeeper.storm 2.安装zookeeper单机版 下载:http://zookeeper.apache.org/releases.html#download ...
- VUE验证器哪家强? VeeValidate absolutely!
VUE验证器哪家强? VeeValidate absolutely! vee-validate表单验证用法 github地址:https://github.com/baianat/vee-valida ...
- grunt 合并压缩js和css文件(二)
具体node及文件配置请看: grunt 安装使用(一) 要压缩的文件 --src/ ajax.js assets.js touch.js zepto.js 目录结构: dist/ node_modu ...
- Hive学习(一)
https://www.cnblogs.com/qingyunzong/p/8707885.html http://www.360doc.com/content/16/1006/23/15257968 ...
- jquery mobile - select and input - horizontal - in same line
控件组合的水平布局 select + input 在同一行 注意jquery mobile 的js 和css 的版本, 一些低版本 估计不支持 <!DOCTYPE html> <ht ...
- node+mongoDB+express项目需求解释
1. morgon模块 --- morgon 用于打印日志,分别为向后台打印和向文件中打印两种情况.stackoverflow. 2. app.use(bodyParser.json()) 3. de ...