EndRun エンドラン NTP タイムサーバ IPv4/IPv6両用カーネルへの更新手順 | |
情報システム営業部TOP-EndRun-NTPタイムサーバ- IPv4/IPv6カーネルへの更新手順 -お問い合わせ-資料請求フォーム |
|
||
EndRun Tempus LX CDMA/GPS, UNISON, MERIDIAN 共通 カーネル更新手順 updated 2010/12/27 |
||
IPv4/IPv6 両用にするには
バージョン 2.60以降のファームウェアは,カーネルがIPv6に対応しているか判別して,IPv4のみで動作したり,IPv4/IPv6両方で動作します.2008年以降,特にご注文時に指定がない限り,IPv4/IPv6対応カーネルをインストールして出荷されています.もし,IPv4対応のカーネルを持つEndrun製該当機器をお持ちの場合は,ここからIPv4/IPv6対応カーネルをダウンロードして更新できます.まずこちらをお読みください. ftp://www.endruntechnologies.com/6010-0041-100.bzimage IPv4/IPv6両用カーネルに更新するツール "upgradekernel" は,バージョン2.60以降に含まれています.カーネルイメージを SCP か ftp で対象機器の /tmp にアップロードしておき, upgradekernel /tmp/6010-0041-100.bzimage として,カーネルを更新します.更新作業中には絶対に電源を切らないでください. IPv4/IPv6カーネルへの更新:
Tempus LX CDMA 6010-0042-000 v 2.62 - Mon Mar 5 18:11:12 UTC 2007 Tempus LX CDMA(cntpuser@stn77:~)-> cd /tmp Tempus LX CDMA(cntpuser@stn77:/tmp)-> ls Tempus LX CDMA(cntpuser@stn77:/tmp)-> ftp www.endruntechnologies.com Connected to www.endruntechnologies.com. 220 FTP server ready. Name (www.endruntechnologies.com:cntpuser): ftp 331 Anonymous login ok, send your complete email address as your password. Password: <メールアドレス> 230 Anonymous access granted, restrictions apply. Remote system type is UNIX. Using binary mode to transfer files. ftp> ls 200 PORT command successful 150 Opening ASCII mode data connection transfering:[file list] drwxr-xr-x 3 endrnnrs vuser 1024 Mar 5 19:44 . drwxr-xr-x 3 endrnnrs vuser 1024 Mar 5 19:44 .. -rw-r--r-- 1 endrnnrs vuser 223972 May 31 2005 6010-0001-003.bin -rw-r--r-- 1 endrnnrs vuser 252292 May 31 2005 6010-0001-004.bin -rw-r--r-- 1 endrnnrs vuser 2896470 May 31 2005 6010-0002-000_1.11.gz -rw-r--r-- 1 endrnnrs vuser 2893930 May 31 2005 6010-0003-000_1.06.gz -rw-r--r-- 1 endrnnrs vuser 2946257 May 31 2005 6010-0005-000_1.04.gz -rw-r--r-- 1 endrnnrs vuser 2942145 May 31 2005 6010-0006-000_1.04.gz -rw-r--r-- 1 endrnnrs vuser 305804 Aug 19 2006 6010-0020-000_2.08.bin -rw-r--r-- 1 endrnnrs vuser 635844 Dec 14 2006 6010-0041-100.bzimage -rw-r--r-- 1 endrnnrs vuser 3614266 May 24 2005 6010-0042-000_2.02.gz -rw-r--r-- 1 endrnnrs vuser 3623471 Jul 16 2005 6010-0042-000_2.03.gz -rw-r--r-- 1 endrnnrs vuser 3628253 Aug 2 2006 6010-0042-000_2.05.gz -rw-r--r-- 1 endrnnrs vuser 5133030 Dec 14 2006 6010-0042-000_2.60.gz -rw-r--r-- 1 endrnnrs vuser 5133397 Mar 5 19:44 6010-0042-000_2.62.gz -rw-r--r-- 1 endrnnrs vuser 79588 May 26 2004 CeImage2.17.zip -rw-r--r-- 1 endrnnrs vuser 79710 May 26 2004 CfImage2.18.zip -rw-r--r-- 1 endrnnrs vuser 81580 May 26 2004 CfrImage2.18.zip -rw-r--r-- 1 endrnnrs vuser 79478 May 26 2004 CtImage2.18.zip -rw-r--r-- 1 endrnnrs vuser 98378 Jan 24 2005 GfrImage2.19.zip -rw-r--r-- 1 endrnnrs vuser 11323162 Jan 11 2006 TempusCntp.zip drwxr-xr-x 2 endrnnrs vuser 512 Sep 16 2001 pub 226 Transfer complete. ftp> get 6010-0041-100.bzimage local: 6010-0041-100.bzimage remote: 6010-0041-100.bzimage 200 PORT command successful 150 Opening BINARY mode data connection downloading file:[6010-0041-100.bzimage](635844 bytes) 226 Transfer complete. 635844 bytes received in 3.47 secs (1.8e+02 Kbytes/sec) ftp> quit 221 Goodbye. Tempus LX CDMA(cntpuser@stn77:/tmp)-> ls 6010-0041-100.bzimage Tempus LX CDMA(cntpuser@stn77:/tmp)-> su - Password:<ルートパスワード> (CDMA の場合) Tempus LX CDMA(root@stn77:/tmp)-> cntpversion Tempus LX CDMA 6010-0042-000 v 2.62 - Mon Mar 5 18:11:12 UTC 2007 <= V2.60以降であることを確認 (GPS の場合) Tempus LX GPS(root@Tempus:/tmp)-> gntpversion Tempus LX GPS 6010-0042-000 v 2.62 - Mon Mar 5 18:11:12 UTC 2007 <= V2.60以降であることを確認 Tempus LX CDMA(root@stn77:~)-> cd /tmp Tempus LX CDMA(root@stn77:/tmp)-> ls 6010-0041-100.bzimage Tempus LX CDMA(root@stn77:/tmp)-> upgradekernel /tmp/6010-0041-100.bzimage Looks like the upgrade kernel will be: 2.4.31-IPV6 (root@Linux1) #0 Fri Oct 20 20:47:14 UTC 2006 Is this correct? [ y , <n> ] y Please confirm that you wish to perform the upgrade - [ CONFIRM , <n> ] CONFIRM Erasing 128 Kibyte @ c0000 -- 100 % complete. Writing 964 bytes -- 100 % complete. Kernel Upgrade Successful, reboot to use the new kernel. Tempus LX CDMA(root@stn77:/tmp)->shutdown -r now Broadcast message from root (ttyp0) (Mon Aug 27 08:17:49 2007): The system is going down for reboot NOW! Tempus LX CDMA(root@stn77:/tmp)-> リブート後 カーネルバージョンを確認し, ntpconfig を実行して,ntp.conf の内容を更新 netconfig を実行して,IPv4とIPv6の設定を行います. Tempus LX CDMA(cntpuser@stn77:~)-> dmesg | grep Kernel 6010-0041-100 Linux Kernel v2.4.31-IPV6 #0 Fri Oct 20 20:47:14 UTC 2006 Kernel command line: config=10000001 initjffs=0 console=ttyS0,19200 root=/dev/mtdblock5 load_ramdisk=1 rw Tempus LX CDMA(cntpuser@stn77:~)-> Tempus LX CDMA(cntpuser@stn77:~)-> su - Password:<ルートパスワード> Tempus LX CDMA(root@stn77:/etc)-> cat ntp.keys # Tempus LX/Unison MD5 Authentication Keys 1 M EndRun_Technologies_LLC 2 M TempusLXUnison Tempus LX CDMA(root@stn77:/etc)-> cat ntp.conf # Tempus LX/Unison/Meridian CDMA NTP Configuration File #Local Clock #server 127.127.1.0 #fudge 127.127.1.0 stratum 10 #Praecis Ce RefClock Driver server 127.127.38.0 prefer fudge 127.127.38.0 flag2 1 driftfile /boot/drift # Restrict Control Access to ALL restrict default nomodify # Authentication keysdir /etc keys /etc/ntp.keys trustedkey 1 2 Tempus LX CDMA(root@stn77:/etc)-> Tempus LX CDMA(root@stn77:/etc)-> ntpconfig ******************************************************************************* **********************Network Time Protocol Configuration********************** ******************************************************************************* * * * This script will allow you to configure the ntp.conf and ntp.keys files * * that control Tempus LX CDMA NTP daemon operation. * * * * You will be able to create new MD5 authentication keys which are stored * * in the ntp.keys file. * * * * You will be able to update the authentication related commands in the * * ntp.conf file. * * * * You will be able to configure the "broadcast" mode of operation, with * * or without authentication. If you supply the multicast address instead * * of your network broadcast address, then you will be able to configure * * the time-to-live of the multicast packets. * * * * The changes you make now will not take effect until you re-boot the * * Tempus LX CDMA. If you make a mistake, just re-run ntpconfig prior to * * re-booting. * * * * You will now be prompted for the necessary set up parameters. * * * ******************************************************************************* ******************************************************************************* ---MD5 Keyfile Configuration Would you like to create a new ntp.keys file? ([y]es, [n]o) n ---NTP Authentication Configuration Do you want authentication enabled using some or all of the keys in the ntp.keys file? ([y]es, [n]o) n ---NTP Broadcast/Multicast Configuration Would you like to enable unauthenticated broadcast/multicast server operation? ([y]es, [n]o) n chmod: cannot access `/boot/etc/ntp.conf': No such file or directory ******************************************************************************* ******************************************************************************* * * * The Tempus LX CDMA Network Time Protocol configuration has been updated. * * * * Please re-boot now for the changes to take effect. * * * ******************************************************************************* ******************************************************************************* ******************************************************************************* Tempus LX CDMA(root@stn77:/etc)-> cat /etc/ntp.conf # Tempus LX/Unison/Meridian CDMA NTP Configuration File #Local Clock #server 127.127.1.0 #fudge 127.127.1.0 stratum 10 #Praecis Ce RefClock Driver server 127.127.38.0 prefer fudge 127.127.38.0 flag2 1 driftfile /boot/drift # Restrict Control Access to ALL restrict default nomodify # Authentication keysdir /etc <= autokey に関する追加項目 keys /etc/ntp.keys trustedkey 1 2 Tempus LX CDMA(root@stn77:~)-> netconfig ******************************************************************************* **************** Tempus LX CDMA IPV4/6 Network Configuration ******************** ******************************************************************************* * * * This script will configure the TCP/IPV4/6 network parameters for your * * Tempus LX CDMA. You will be able to reconfigure your system at any time * * by typing: * * * * net6config * * * * The settings you make now will not take effect until you restart your * * Tempus LX CDMA, so if you make a mistake, just re-run this script before * * re-booting. * * * * You will be prompted to enter your IPV4/6 network parameters now. * * * ******************************************************************************* ******************************************************************************* Do You Need to Configure IPV4 Settings? If not, only the loopback interface will be setup, and DHCP will be disabled. Configure IPV4? ([y]es, [n]o) y ---IPV4 Question & Answer ---IPV4 DHCP Settings Use an IPV4 DHCP server to configure the ethernet interface? ([y]es, [n]o) y Use DHCP to set the hostname? ([y]es, [n]o) n Use DHCP to set the domainname? ([y]es, [n]o) y ---HOST name setting Set the hostname of your Tempus LX CDMA. Only the base hostname is needed, not the domain. Enter hostname: tempus1 Since you are using DCHP to configure your Tempus LX CDMA, you're done with IPV4. Do You Need to Configure IPV6 Settings? If not, only the loopback interface and autoconfigured link scope address will be setup, and acceptance of Router Advertisements will be disabled. Configure IPV6? ([y]es, [n]o) y ---IPV6 Question & Answer ---Router Advertisements (RADV) Setting Use Router Advertisements to configure the ethernet interface? ([y]es, [n]o) y ---DOMAIN NAMESERVER(S) address setting Will your Tempus LX CDMA be accessing an IPV6 nameserver ([y]es, [n]o)? y Set the IPV6 address of the primary name server to use for domain . Enter primary name server IPV6 address (aaaa::bbbb:cccc:dddd): 2001:268:347::53:2 Will your Tempus LX CDMA be accessing a secondary IPV6 nameserver ([y]es, [n]o)? n Setting up TCP/IP... Creating /etc/HOSTNAME... Creating /etc/rc.d/rc.inet1... Creating /etc/rc.d/rc.inet6... Creating /etc/networks... Creating /etc/hosts... Creating /etc/resolv.conf... ******************************************************************************* ******************************************************************************* * * * The Tempus LX CDMA IPV4/IPV6 network configuration has been updated. * * * * Please re-boot now for the changes to take effect. * * * ******************************************************************************* ******************************************************************************* ******************************************************************************* Tempus LX CDMA(root@stn77:~)-> Tempus LX CDMA(root@stn77:~)-> ifconfig -a eth0 Link encap:Ethernet HWaddr 00:0E:FE:00:01:77 inet addr:192.168.0.77 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::20e:feff:fe00:177/64 Scope:Link inet6 addr: 2001:268:347:0:20e:feff:fe00:177/64 Scope:Global UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4201 errors:0 dropped:0 overruns:0 frame:0 TX packets:606 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:349230 (341.0 Kb) TX bytes:81404 (79.4 Kb) Interrupt:12 Base address:0x1000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:1073 errors:0 dropped:0 overruns:0 frame:0 TX packets:1073 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:174460 (170.3 Kb) TX bytes:174460 (170.3 Kb) sit0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 NOARP MTU:1480 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Tempus LX CDMA(root@stn77:~)-> ping6 2001:268:347::53:2 PING 2001:268:347::53:2(2001:268:347::53:2) 56 data bytes 64 bytes from 2001:268:347::53:2: icmp_seq=1 ttl=255 time=0.639 ms 64 bytes from 2001:268:347::53:2: icmp_seq=2 ttl=255 time=0.583 ms 64 bytes from 2001:268:347::53:2: icmp_seq=3 ttl=255 time=0.593 ms --- 2001:268:347::53:2 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2017ms rtt min/avg/max/mdev = 0.583/0.605/0.639/0.024 ms Tempus LX CDMA(root@stn77:~)-> 以上 |
||