linux有什么路由软件下载,linux路由软件:zebra

路由:

1.简介

2.静态路由:

添加:

route add

-host 10.0.2.1 gw 172.16.100.1

route add -net 202.1.1.0 netmask

255.255.255.0 gw 172.16.4.1

错误: gw必须和本机器在一个网段内.如果要跨网,设置跳数M.

或者指定

ETHO出去:

add -net 202.1.1.0 netmask 255.255.255.0 gw dev eth0

?????????

删除:

route del -net 202.1.1.0 netmask

255.255.255.0

备注:

手工添加的路由命令,写入/etc/rc.d/rc.local

3.动态路由:

quagga: rhel4里的路由服务

是zebra的一个分支,更

新速度快于zebra.

查看安装的服务:

cat /etc/services |grep rip

查看zebra安装的模板:

ls /etc/quagga

bgpd.conf.sample

bgpd.conf.sample2

ospf6d.conf.sample

ospfd.conf.sample

ripd.conf.sample

ripngd.conf.sample

vtysh.conf

vtysh.conf.sample

zebra.conf

zebra.conf.sample

无论开什么路由服务,都必须开zebra+协议服务.

如zebra+bgpd

----------------

hpstgmgr

2600/tcp        zebrasrv        # HPSTGMGR

discp-client

2601/tcp        zebra           # discp client

[root@szx quagga]# cat

/etc/services |grep rip

ripng           521/tcp

ripng

521/udp

discp-server    2602/tcp        ripd            # discp

server

servicemeter    2603/tcp        ripngd          # Service

Meter

-----------------

配置路由器的方法:

telnet 0 2601

or

telnet 路由器

4.启动zebra

1)复制模板

cd /etc/quagga

cp

zebra.conf.samples zebra.conf

cp ripd.conf.samples ripd.conf

2)启动服务

service zebra start

service ripd

start

rip(V2版本) 最高15跳 ???

ospf        最高255跳 ???

5.配置

cp ripd.conf.sample ripd.conf

-----------------------

!

-*- rip -*-

!

! RIPd sample configuration file

!

! $Id:

ripd.conf.sample,v 1.1.1.1 2002/12/13 20:15:30 paul Exp $

!

hostname

ripd

password zebra

!

! debug rip events

! debug rip packet

!

router

rip

! network 11.0.0.0/8

! network eth0

! route 10.0.0.0/8

!

distribute-list private-only in eth0

!

!access-list private-only

permit 10.0.0.0/8

!access-list private-only deny any

!

!log

file ripd.log

!

log stdout 日志文件

------------

-------------

#

more zebra.conf.sample

! -*- zebra -*-

!

! zebra sample

configuration file

!

! $Id: zebra.conf.sample,v 1.1.1.1 2002/12/13

20:15:30 paul Exp $

!

hostname Router 用户名

password zebra

普通模式密码

enable password zebra 全局模式密码

!

! Interface's

description.

!

!interface lo

! description test of desc.

!

!interface

sit0

! multicast

!

! Static default route sample.

!

!ip

route 0.0.0.0/0 203.181.89.241

!

!log file zebra.log

-------------

5.2

动服务

zebra 2601

ripd  2602

5.3连接设置路由

vtysh-->telnet 0 2601

rip

--->telnet 0 2602

rip发音:瑞扑

5.4

linux> 用户模式

linux# 特权模式

.

.

.

常用命令:

在LINUX>模式下:

en 进入特权模式

conf t

进入全局模式

list 显示当前模式下命令格式 (no xxx:清除xxx命令的设置)

? 显示当前模式下命令

router

rip 进入RIP路由配置模式

router ospf

router bgp 7675

write

tab键 命令补全

exit

退出

6.虚拟模块实验(讲义里没有)

#modprobe dummy

#lsmod

|grep dummy

#ifconfig dummy0 192.168.11.1

------------

如果不能加载,则:

#vi

/etc/modprobe.conf 添加新的别名

eth2 dummy

------------

show ip route??

7.实验

ip route 192.168.1.0/24 eth0 设置静态路由

hostname

linux 设置主机名

password linux 设置进入用户模式密码

enable password linux

设置进入特权模式密码

write(or copy run start) 保存

8。

show ip route

route

-n

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值