1. 1
1
新春ハッタリ企画
The Art of Network Protocols
- RIP編 -
2012年1月28日
東京OpenSolaris勉強会
きりんぐみ
秋山 尚之
The Art of Network Protocols, RIP Edition by AKIYAMA, Takayuki
35. 35
35
テンプレートゾーン(4)
sysconfig 最初の画面
System Configuration Tool
System Configuration Tool enables you to specify the following
configuration parameters for your newly-installed Oracle Solaris 11
system:
- network, time zone, date and time, user and root accounts, name
services
System Configuration Tool produces an SMF profile file in ./z0.xml.
How to navigate through this tool:
- Use the function keys listed at the bottom of each screen to move
from screen to screen and to perform other operations.
- Use the up/down arrow keys to change the selection or to move
between input fields.
- If your keyboard does not have function keys, or they do not
respond, press ESC; the legend at the bottom of the screen will
change to show the ESC keys for navigation and other functions.
F2_Continue F6_Help F9_Quit
sysconfig create-profile: the first screen
37. 37
37
テンプレートゾーン(6)
sysconfig 最終確認画面
System Configuration Summary
Review the settings below before continuing. Go back (F3) to make changes.
Time Zone: Japan
Language: *The following can be changed when logging in.
Default language: C/POSIX
Keyboard layout: *The following can be changed when logging in.
Default keyboard layout: US-English
Terminal type: sun-color
Users:
No user account
Network:
Computer name: z0
Network Configuration: None
F2_Apply F3_Back F6_Help F9_Quit
sysconfig create-profile: the last screen
38. 38
38
テンプレートゾーン(7)
zonecfg コマンドファイル
# cat z0.cfg
create -b
set zonepath=/zones/z0
set brand=solaris
set autoboot=false
set ip-type=exclusive
add net
set allowed-address=10.0.1.1/24
set configure-allowed-address=true
set physical=n0
end
add net
set allowed-address=10.0.2.2/24
set configure-allowed-address=true
set physical=e0
end
(つづく)
zonecfg command file
50. 50
50
デモ用データ取得
スクリプト
A shell script on the global zone gathers routes in non-global zones.
•シェルスクリプト
•グローバルゾーンから各ゾーンのデータを
取得
•zlogin ゾーン rtquery -n
•nhopを矢印(↑→↓←)に変換
•メトリックを表示
61. 61
61
IPv6の設定(1)
アドレスを追加
select net physical=n10_10
set allowed-address=192.168.100.2/24,fe80::8:20ff:fefb:fefb/10,2001:db8:0:100::2/64
set configure-allowed-address=true
end
select net physical=e10_10
set allowed-address=192.168.210.1/24,fe80::8:20ff:feaf:d694/10,2001:db8:0:210::1/64
set configure-allowed-address=true
end
select net physical=s10_10
set allowed-address=192.168.110.1/24,fe80::8:20ff:fec5:21b1/10,2001:db8:0:110::1/64
set configure-allowed-address=true
end
select net physical=w10_10
set allowed-address=192.168.200.2/24,fe80::8:20ff:fe04:7e67/10,2001:db8:0:200::2/64
set configure-allowed-address=true
end
zonecfgのコマンド - リンクローカルアドレスの指定が必須
Adding IPv6 addresses; link-local addresses are required.
62. 62
62
IPv6の設定(2)
リンクローカルアドレス
MACアドレスの取得
$ dladm show-vnic n10_10 -p -o macaddress
2:8:20:fb:fe:fb
set allowed-address=192.168.100.2/24,
fe80::8:20ff:fefb:fefb/10,
2001:db8:0:100::2/64
これに対応するアドレス
EUI-64アドレスにもとづくもの。
ただし最上位オクテットの下から2番目のビットは反転する。
How to generate a link-local address
64. 64
64
in.ripngdの挙動の観察
Use netstat to get the IPv6 routing table; metrics cannot be obtained.
•rtqueryは使えない。
•かわりにnetstat -r [-f inet6]
•メトリックは得られない。