#!/usr/bin/perl # # $Copyright$ # # $TAHI: ct/natpt/initialize.seq,v 1.5 2001/10/11 01:41:46 akisada Exp $ # BEGIN { $V6evalTool::TestVersion = '$Name: $'; } use V6evalTool; use natpt; checkNUT(router); $IF0_device=$V6evalTool::NutDef{Link0_device}; $IF1_device=$V6evalTool::NutDef{Link1_device}; $ret=reboot(); if( $ret !=$V6evalTool::exitIgnore) { vLogHTML("Can not reboot NUT !!"); goto error_fatal; }else { vLogHTML("

--- reboot NUT ---

"); } $ret=config_host_v4($IF1_device); if( $ret !=0) { vLogHTML("Can not configure IPv4 !!"); }else { vLogHTML("

--- TN can configure NUT IPv4 address ---

"); } $ret=config_natpt($IF0_device, "in", "0:0:0:0:ffff::", 96, $IF0_device, "out", "0.0.0.0", 0); if( $ret !=0) { vLogHTML("Can not configure NAT-PT !!"); }else { vLogHTML("

--- TN can configure NAT-PT between TN and NUT ---

"); } vLogHTML("

OK

"); exit $V6evalTool::exitIgnore; error_fatal: vLogHTML("

NG

"); vErrmsg(%ret); exit $V6evalTool::exitFatal; ######################################################################## __END__ =head1 NAME initialize.seq - initialization siit environment test =head1 TARGET Router =head1 SYNOPSIS This script configures for SIIT. In First, reboot NUT. Configures, - assign IPv4 address - set up SIIT IPv6/IPv4 Translator =head1 SEE ALSO perldoc V6evalTool =cut