X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=master%2Froot%2Fbin%2Fconf_switch_integration;h=69698bb46a785d7d11a25dd474de2fd5d444d801;hb=HEAD;hp=b454138c887331818df7cc58c33f791b505b4011;hpb=90b53a74e6ab72a304e99b8b7dd12c2e3bd29edd;p=debian6500.git diff --git a/master/root/bin/conf_switch_integration b/master/root/bin/conf_switch_integration index b454138..69698bb 100755 --- a/master/root/bin/conf_switch_integration +++ b/master/root/bin/conf_switch_integration @@ -2,7 +2,7 @@ set sub [lrange $argv 0 0] if { $sub == "" } { set sub "1" } -spawn telnet sw1 +spawn telnet swm expect { "Password:" { send "thales\r" } @@ -18,7 +18,7 @@ expect -exact "#" { send "config terminal\r" } expect -exact "#" { send "vlan 192\r" } expect -exact "#" { send "name Integration\r" } expect -exact "#" { send "exit\r" } -f + expect -exact "#" { send "interface gigabitEthernet 1/47\r" } expect -exact "#" { send "switchport mode access\r" } expect -exact "#" { send "switchport access vlan 192\r" } @@ -31,7 +31,8 @@ expect -exact "#" { send "no shutdown\r" } expect -exact "#" { send "exit\r" } expect -exact "#" { send "ip route 192.168.$sub.0 255.255.255.0 Vlan192\r" } -expect -exact "#" { send "ip route 192.168.$sub.160 255.255.255.255 10.133.26.160\r" } +#expect -exact "#" { send "ip route 192.168.$sub.160 255.255.255.255 10.133.26.160\r" } +expect -exact "#" { send "ip route 192.168.$sub.160 255.255.255.255 10.133.28.160\r" } expect -exact "#" { send "ip route 192.168.$sub.101 255.255.255.255 Vlan10\r" } expect -exact "#" { send "ip route 192.168.0.0 255.255.255.0 192.168.$sub.230\r" } expect -exact "#" { send "exit\r" }