現在更新中記事
考え方
・キャリア関連サイト
・生き方関連サイト
・将来関連サイト
・考え方関連サイト
システムエンジニア
・プロジェクトTIPS
・システムエンジニア関連サイト
・保守関連サイト
プロジェクトマネージメント
・プロジェクトマネージメント関連サイト
・プロジェクト管理関連サイト
・契約関連サイト
オープンソース
・オープンソース関連サイト
・ライセンス関連サイト
OSPF(ネットワーク)[ zebra ]
設定モードにて、以下のコマンドにてOSPFのネットワークを設定することが出来ます。
ospfd@RTA# configure terminal ospfd@RTA(config)# router ospf ospfd@RTA(config-router)# network 10.10.1.0/24 area 0 ospfd@RTA(config-router)# network 192.168.169.0/24 area 0
経路を確認すると以下の様になっています。
zebra@RTA# show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
B - BGP, > - selected route, * - FIB route
K>* 0.0.0.0/0 via 192.168.169.2, lnc0
O 10.10.1.0/24 [110/10] is directly connected, lnc1, 00:03:12
C>* 10.10.1.0/24 is directly connected, lnc1
C>* 127.0.0.0/8 is directly connected, lo0
O 192.168.169.0/24 [110/10] is directly connected, lnc0, 00:03:12
C>* 192.168.169.0/24 is directly connected, lnc0
K>* 192.168.169.130/32 via 127.0.0.1, lo0
OSPF(ルータID)[ zebra ]
設定モードにて、以下のコマンドにてOSPFのルータIDを設定することが出来ます。
ospfd@RTA# configure terminal ospfd@RTA(config)# router ospf ospfd@RTA(config-router)# router-id 192.168.169.130
経路確認(一覧)[ zebra ]
以下のコマンドにて経路の一覧を確認することが出来ます。
zebra@RTA# show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
B - BGP, > - selected route, * - FIB route
K>* 0.0.0.0/0 via 192.168.169.2, lnc0
C>* 10.10.1.0/24 is directly connected, lnc1
C>* 127.0.0.0/8 is directly connected, lo0
C>* 192.168.169.0/24 is directly connected, lnc0
K>* 192.168.169.130/32 via 127.0.0.1, lo0
ospfd.confの作成[ zebra ]
以下のコマンドにてzebra.confを作成します。# cd /usr/local/etc/zebra # cp ospfd.conf.sample ospfd.conf
インターフェース設定(IP)[ zebra ]
設定モードにて、以下のコマンドにてIPアドレスを設定することが出来ます。
zebra@RTA# configure terminal zebra@RTA(config)# interface ln0 zebra@RTA(config-if)# ip address 192.168.169.130/24 zebra@RTA(config-if)# no shutdown
static経路設定[ Juniper ]
以下のコマンドにてstatic経路を設定することが出来ます。
#set routing-options static route (ルートアドレス) next-hop (インターフェース名 or next-hopアドレス)
static経路確認[ Juniper ]
以下のコマンドにてstatic経路を確認することが出来ます。
> show configuration routing-options static ・・・
設定取得(ftp)[ Juniper ]
ftpで設定を取得することが出来ます。
/config/juniper.conf.gzが最新の設定ファイルです。
ftp> cd /config 250 CWD command successful. ftp> ls 229 Entering Extended Passive Mode (|||52899|) 150 Opening ASCII mode data connection for '/bin/ls'. total 16 -rw-r----- 1 root wheel 1760 Aug 12 10:37 juniper.conf.1.gz -rw-r----- 1 root wheel 1757 Aug 11 21:00 juniper.conf.2.gz -rw-r----- 1 root wheel 1757 Aug 11 20:56 juniper.conf.3.gz -rw-r----- 1 root wheel 1757 Aug 12 10:44 juniper.conf.gz 226 Transfer complete. ftp> get juniper.conf.gz juniper.conf.gz local: juniper.conf.gz remote: juniper.conf.gz 229 Entering Extended Passive Mode (|||60478|) 150 Opening BINARY mode data connection for 'juniper.conf.gz' (1757 bytes). 100% |**************************************************************************************************************************************************************************************| 1757 2.08 MB/s 00:00 ETA 226 Transfer complete. 1757 bytes received in 00:00 (1.80 MB/s)
起動サービス[ Juniper ]
以下のコマンドにて起動しているサービスを確認することが出来ます。
> show configuration system services ftp; telnet;
モニタリング(インターフェース毎)[ Juniper ]
以下のコマンドにてパケットをインターフェース毎にモニタリングすることが出来ます。
> monitor interface ge-1/0/0 ・・・
モニタリング(インターフェース一覧)[ Juniper ]
以下のコマンドにてパケットをインターフェース一覧でモニタリングすることが出来ます。
> monitor interface traffic ・・・
インターフェース確認(個別)[ Juniper ]
以下のコマンドにてインターフェースの一覧を確認することが出来ます。
> show interfaces ge-1/0/0(インターフェース名) ・・・
ホスト名変更[ zebra ]
設定モードにて、以下のコマンドにてホスト名を変更することが出来ます。
Router(config)# hostname zebra@RTA zebra@RTA(config)#
zebraにログイン[ zebra ]
以下の様にしてzebraにログインします。
# telnet localhost zebra Trying ::1... Connected to localhost.ikepon.jp. Escape character is '^]'. Hello, this is zebra (version 0.94). Copyright 1996-2002 Kunihiro Ishiguro. User Access Verification Password: Router>
zebra.confの作成[ zebra ]
以下のコマンドにてzebra.confを作成します。# cd /usr/local/etc/zebra # cp zebra.conf.sample zebra.conf
Swap領域の確認[ FreeBSD ]
以下の様にしてSwap領域を確認します。
$ pstat -s Device 1K-blocks Used Avail Capacity /dev/ad0s1b 1048576 0 1048576 0%
起動スクリプト(FreeBSD)[ zebra ]
以下の起動スクリプトを/usr/local/etc/rc.d/zebra.shとして配置します。
#!/bin/sh
case $1 in
'start' )
if [ -f /usr/local/sbin/zebra ] ; then
/usr/local/sbin/zebra -d &
/usr/local/sbin/ospfd -d &
/usr/local/sbin/bgpd -d &
fi
echo 'zebra start '
;;
'stop' )
if [ -f /var/run/zebra.pid ] ; then
kill -TERM `cat /var/run/zebra.pid`
kill -TERM `cat /var/run/ospf.pid`
kill -TERM `cat /var/run/bgpd.pid`
fi
echo 'zebra stop'
;;
'restart')
$0 stop
$0 start
;;
*)
echo "usage : $0 {start|stop|restart}"
;;
esac