关于cisco路由器配置的一些参数
单臂路由设置
Switch(config-if)#no switchport
Switch(config)#ip routing
Switch(config)#interface FastEthernet0/1
Switch(config-if)#switchport trunk encapsulation dot1q
Switch(config-if)#exit
Switch(config)#interface vlan 2
Switch(config-if)#ip address 192.168.2.1 255.255.255.0
Switch(config-if)#exit
Switch(config)#interface vlan 3
三层交换机设置
s3(config)#ip routing开启路由功能
s3(config)#int fa0/5
s3(config-if)#no switchport该端口启用三层路由功能
s3(config-if)#ip address 192.168.5.1 255.255.255.0配置IP地址
s3(config-if)#no shutdown开启端口
S2(config-if)switchport trunk encapsulation dot1q
S2(config)#interface vlan 10????????????? //进入vlan 10接口配置模式
S2(config-if)#ip address 192.168.1.254 255.255.255.0
单3层交换机配置 不划分vlan
Switch(config)#ip routing
Switch(config)#interface FastEthernet0/1
Switch(config-if)#no switchport
Switch(config-if)#ip address 192.168.3.1 255.255.255.0
单线vlan配置
Router(config-if)#interface GigabitEthernet0/0.1
Router(config-subif)#encapsulation dot1q 2
Router(config-subif)#ip address 192.168.1.1 255.255.255.0
dhcp
wanglei(config)#ip dhcp excluded-address 192.168.1.1
wanglei(config)#ip dhcp pool dhcppool1
wanglei(dhcp-config)#network 192.168.1.0 255.255.255.0
wanglei(dhcp-config)#default-router 192.168.1.1
wanglei(dhcp-config)#dns-server 192.168.1.1
wanglei(dhcp-config)#dns-server 61.128.114.133
静态nat
Router(config)#ip nat inside source static 192.168.1.2 192.168.2.3
Router(config)#ip nat inside source static 192.168.1.3 192.168.2.4
show ip nat translations
Router(config)#ip nat pool aaa 192.168.2.20 192.168.2.30 netmask 255.255.255.0
Router(config)#ip nat inside source list 1 pool aaa
Router(config)#access-list 1 permit 192.168.1.0 255.255.255.0
Router(config)#show ip nat translations
debug ip nat
内部10.1.1.3 转化 170.168.2.2
重载
Router(config)#ip nat pool aaa 192.168.2.1 192.168.2.1 netmask 255.255.255.0
Router(config)#ip nat inside source list 1 pool aaa overload
Router(config)#access-list 1 permit 192.168.1.0 0.0.0.255
Router(config)#exit
不重载
Router(config)#ip nat pool aaa 192.168.2.5 192.168.2.15 netmask 255.255.255.0
Router(config)#ip nat inside source list 1 pool aaa
Router(config)#access-list 1 permit 192.168.1.0 0.0.0.255
关于cisco路由器配置的一些参数的更多相关文章
- cisco路由器配置教程
配置cisco路由器 经过几十年的发展,从最初的只有四个节点的ARPANET发展到现今无处不在的Internet,计算机网络已经深入到了我们生活当中.随着计算机网络规模的爆炸性增长,作为连接设备的路由 ...
- 路由与交换,cisco路由器配置,动态路由协议—RIP
一.动态路由协议分类 动态路由协议包括IGP(内部网关协议)和EGP(外部网关协议). 1.IGP IGP又包括距离向量路由协议和链路状态路由协议. (1)距离向量路由协议典型代表:RIP (2)链路 ...
- Cisco路由器配置基本命令
特权模式:enable Router1 # show running-config Router1 # show ip route Router # show ip interface brief S ...
- 路由与交换,cisco路由器配置,浮动静态路由
设置浮动静态路由的目的就是为了防止因为一条线路故障而引起网络故障.言外之意就是说浮动静态路由实际上是主干路由的备份.例如下图: 假如我们设路由器之间的串口(seria)为浮动静态路由(管理距离为100 ...
- 路由与交换,cisco路由器配置,静态路由
网络是一个大型的拓扑结构,在路由表中,最重要的是管理距离和度量值 管理距离 管理距离用来确定路由的优先级.管理距离的范围是0-255之间的整数值.值越低代表优先级越高.0代表最高优先级.并且只有直连路 ...
- 路由与交换,cisco路由器配置,基础知识点(二)
1.进退用户/特权/全局模式 (1)从用户模式进入特权模式 enable (2)从特权模式进入全局配置模式 configure terminal (3)从其他模式回到特权模式 end (4)从特权模式 ...
- 路由与交换,cisco路由器配置,基础知识点(一)
基础知识点 1.路由器与交换机端口初始化区别 路由器的所有接口默认都是关闭的 交换机的所有接口默认都是打开的 2.路由器 fastEthernet 端口 fastEthernet 0/0 第一个0代表 ...
- Cisco路由器配置ADSL上网
cisco1841#sh run Building configuration... Current configuration : 2970 bytes ! version 12.4 service ...
- cisco路由器配置(三) 最终网关
Gateway(config)#ip route 0.0.0.0 0.0.0.0 217.124.6.1 /*管理距离为1/orGateway(config)#ip route 0.0.0.0 0. ...
随机推荐
- SharePoint2010QuickFlow安装及使用
一:QuickFlow的安装 1,从http://quickflow.codeplex.com/下载解决方案包以及设计器. 2,将QuickFlow.dll以及QuickFlow.UI.dll添加到程 ...
- iOS:UITableView相关(18-10-20更)
UITableView用得较多,遇到的情况也较多,单独记录一篇. 一.零散的技巧 二.取cell 三.cell高度 四.导航栏.TableView常见问题相关 五.自定义左滑删除按钮图片 六.仅做了解 ...
- iOS 中系统与 SDK 版本检测
一.编译时检测 1. 判断 SDK 是否是某个版本或更高版本 ifdef __IPHONE_11_0 2.判断当前需要支持的最低版本 __IPHONE_OS_VERSION_MIN_REQUIRED ...
- css模型框
在 CSS 中,width 和 height 指的是内容区域的宽度和高度.增加内边距.边框和外边距不会影响内容区域的尺寸,但是会增加元素框的总尺寸. 假设框的每个边上有 10 个像素的外边距和 5 个 ...
- K8s集群安装和检查(经验分享)
一.组件方式检查 1. Master节点: root>> kubectl get cs 2. Node 节点: 无 二.服务方式检查 1. Master 节点: root>> ...
- 最新学习springboot 配置注解
一.概述 Spring Boot设计目的是用来简化新Spring应用的初始搭建以及开发过程.Spring Boot并不是对Spring功能上的增强,而是提供了一种快速使用Spring的方式. ...
- tomcat 远程debug配置,教你远程调试代码,解决线上故障
IDEA远程DEBUG Tomcat很简单,配置如下: 1.修改tomcat服务器配置 打开tomcat/bin/catalina.sh 在空白处添加如下参数 CATALINA_OPTS=&quo ...
- Redis报(error) NOAUTH Authentication required.问题解决
启动后 输入auth+空格+密码 ok
- 利用.htaccess文件将多个子域名解析至对应的子目录
对于不支持子域名解析但是支持 .htaccess 的主机来说,这个功能就非常有用了 假设有主域名 ppios.com,子域名 yspx.ppios.com 和 ask.ppios.com,设置结果为访 ...
- python七类之集合
集合 一.关键字 : set 定义是 s = {} #当里面没有元素的时候表现为字典数据类型 s = {} #空的{}代表空的字典,而不是集合 print(type(s)) 集合是不可哈希的 ...