ルーティングソフトウェアquagga(クアッガ)

更新日 2016-07-15 (金) 21:13:37

インストール

$ sudo yum install quagga
$ sudo cp /usr/share/doc/quagga-0.99.22.4/ripd.conf.sample /etc/quagga/ripd.conf
sudo chmod -R og+rx /etc/quagga

起動と確認

$ sudo systemctl start zebra
$ sudo systemctl list-units -t service -a | grep zebra
  zebra.service                          loaded    active   running GNU Zebra routing manager
$ sudo systemctl enable zebra
Created symlink from /etc/systemd/system/multi-user.target.wants/zebra.service to /usr/lib/systemd/system/zebra.service.
$ sudo vtysh

Hello, this is Quagga (version 0.99.22.4).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

openvpn# ←? (Help)
  clear        Reset functions
  configure    Configuration from vty interface
  copy         Copy from one file to another
  debug        Enable debug messages for specific or all part.
  disable      Turn off privileged mode command
  end          End current mode and change to enable mode
  exit         Exit current mode and down to previous mode
  list         Print command list
  no           Negate a command or set its defaults
  ping         Send echo messages
  quit         Exit current mode and down to previous mode
  show         Show running system information
  ssh          Open an ssh connection
  start-shell  Start UNIX shell
  telnet       Open a telnet connection
  terminal     Set terminal line parameters
  traceroute   Trace route to destination
  undebug      Disable debugging functions (see also 'debug')
  write        Write running configuration to memory, network, or terminal
openvpn#  configure terminal ← 設定モードへ移行

openvpn(config)# int eth0 ← インターフェイスの指定

openvpn(config)# router rip ← ripの設定モードへ移行

openvpn(config-router)# network 192.168.10.0/24 ←ripの提供ネットワークを設定

openvpn(config-router)# exit

openvpn(config)# exit

openvpn# write memory ← ファイルへの書き込み
Building Configuration...
Configuration saved to /etc/quagga/zebra.conf
[OK]

openvpn# exit

&color(red){以下のエラーの時はselinuxを無効⇒ $ sudo setenforce 0}

openvpn# write memory
Building Configuration...
Can't open configuration file /etc/quagga/zebra.conf.E4vFCY.
[OK]
openvpn# show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP,
       O - OSPF, I - IS-IS, B - BGP, A - Babel,
       > - selected route, * - FIB route

K>* 0.0.0.0/0 via 172.31.16.1, eth0
C>* 127.0.0.0/8 is directly connected, lo
C>* 172.31.16.0/20 is directly connected, eth0
K>* 192.168.10.0/24 via 192.168.48.2, tun0
K>* 192.168.48.0/24 via 192.168.48.2, tun0
C>* 192.168.48.2/32 is directly connected, tun0

参考


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS