#!/bin/bash

# Company:  PowerCraft Technology
# Author:   Copyright Jelle de Jong <jelledejong@powercraft.nl>
# Note:     Please send me an email if you enhanced the document
# Date:     2010-07-25
# License:  CC-BY-SA

# This document is free documentation; you can redistribute it and/or
# modify it under the terms of the Creative Commons Attribution Share
# Alike as published by the Creative Commons Foundation; either version
# 3.0 of the License, or (at your option) any later version.
#
# This document is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# Creative Commons BY-SA License for more details.
#
# http://creativecommons.org/licenses/by-sa/

#-----------------------------------------------------------------------

cu -l /dev/ttyUSB1
~ ctlr-d # close


screen -S console /dev/ttyUSB1 9600
/dev/ttyUSB0 -s 9600

23:48 <@mvn071> ctrl-h
23:48 <@mvn071> als back space

#-----------------------------------------------------------------------

FWS648G Switch#config terminal
FWS648G Switch(config)#no ip address 192.168.1.125 255.255.255.0 dynamic
FWS648G Switch(config)#no ip dns server-address 192.168.1.1
FWS648G Switch(config)#no ip dhcp-client lease 34019
FWS648G Switch(config)#no ip default-gateway 192.168.1.1
FWS648G Switch(config)#sntp server 192.168.1.1
FWS648G Switch(config)#ip dhcp-client enable
FWS648G Switch(config)#write mem
FWS648G Switch(config)#end
FWS648G Switch#reload

#-----------------------------------------------------------------------

FWS648G Switch#con t
FWS648G Switch(config)#show sntp associations
FWS648G Switch(config)#show sntp status

#-----------------------------------------------------------------------

FWS648G Switch>show version
  SW: Version 04.3.01T7e1 Copyright (c) 1996-2008 Foundry Networks, Inc.
      Compiled on Nov 13 2008 at 20:57:47 labeled as FGS04301
      (2927690 bytes) from Primary fgs04301.bin
      BootROM: Version 05.0.00T7e5 (FEv2)
  HW: Stackable FWS648G
==========================================================================
STACKID 0: SL 1: FastIron WS 648G 48-port Management Module
      Serial  #: AN08441763
      P-ASIC  0: type D80C, rev 01
      P-ASIC  1: type D80C, rev 01
==========================================================================
  400 MHz Power PC processor 8248 (version 130/2014) 66 MHz bus
  512 KB boot flash memory
30720 KB code flash memory
  256 MB DRAM
The system uptime is 7 minutes 11 seconds
The system started at 15:00:38 GMT+00 Sun Jul 25 2010

The system : started=warm start   reloaded=by "reload"

#-----------------------------------------------------------------------

FWS648G Switch#show tech-support

#-----------------------------------------------------------------------

FWS648G Switch#whois powercraft.nl
FWS648G Switch#traceroute powercraft.nl

foundry-fws648g-01(config-vlan-2)# hostname foundry-fws648g-01


#-----------------------------------------------------------------------

# page 386

FWS648G Switch#config terminal
FWS648G Switch(config)#vlan 2 name wlan by port
foundry-fws648g-01(config-vlan-2)#untagged ethernet 0/1/1 to 0/1/48
foundry-fws648g-01(config-vlan-2)#end
foundry-fws648g-01#write mem

#-----------------------------------------------------------------------

foundry-fws648g-01#config terminal
foundry-fws648g-01(config)#vlan 1
foundry-fws648g-01(config-vlan-1)#management-vlan
foundry-fws648g-01(config-vlan-1)#end
foundry-fws648g-01#write mem

#-----------------------------------------------------------------------

# page 1225

foundry-fws648g-01#config terminal
foundry-fws648g-01(config)#crypto key generate
foundry-fws648g-01(config)#ip ssh password-authentication yes
foundry-fws648g-01(config)#no telnet server
foundry-fws648g-01(config)#enable super-user-password BahCh8Ah
foundry-fws648g-01(config)#end
foundry-fws648g-01#write memory

#-----------------------------------------------------------------------

foundry-fws648g-01#config terminal
foundry-fws648g-01(config)#username jelledj password BahCh8Ah
foundry-fws648g-01(config)#no web-management
foundry-fws648g-01(config)#aaa authentication login default local
foundry-fws648g-01(config)#end
foundry-fws648g-01#write memory

#-----------------------------------------------------------------------


foundry-fws648g-01(config-vlan-2)#tagged ethernet 0/1/1 to 0/1/48
foundry-fws648g-01(config-vlan-2)#int ethernet 0/1/1 to 0/1/48
foundry-fws648g-01(config-mif-0/1/1-0/1/48)#dual-mode


foundry-fws648g-01#config t
foundry-fws648g-01(config)#default-vlan-id 1

ssh jelledj@192.168.1.12
ssh root@192.168.1.12

#-----------------------------------------------------------------------

SSH@foundry-fws648g-01#show running-config
Current configuration:
!
ver 04.3.01T7e1
!
module 1 fws1g-48-port-copper-base-module
!
!
!
!
vlan 1 name DEFAULT-VLAN by port
!
vlan 2 name wlan by port
 tagged ethe 0/1/1 to 0/1/48
!
!
!
!
!
!
!
!
aaa authentication login default local
enable super-user-password .....
enable user password-masking
hostname foundry-fws648g-01
ip address 192.168.1.12 255.255.255.0 dynamic
ip dns server-address 192.168.1.1
ip dhcp-client lease 32207
ip default-gateway 192.168.1.1
no telnet server
username jelledj password .....
sntp server 192.168.1.1
no web-management http
interface ethernet 0/1/1
 dual-mode
!
interface ethernet 0/1/2
 dual-mode
!
interface ethernet 0/1/3
 dual-mode
!
interface ethernet 0/1/4
 dual-mode
!
interface ethernet 0/1/5
 dual-mode
!
interface ethernet 0/1/6
 dual-mode
!
interface ethernet 0/1/7
 dual-mode
!
interface ethernet 0/1/8
 dual-mode
!
interface ethernet 0/1/9
 dual-mode
!
interface ethernet 0/1/10
 dual-mode
!
interface ethernet 0/1/11
 dual-mode
!
interface ethernet 0/1/12
 dual-mode
!
interface ethernet 0/1/13
 dual-mode
!
interface ethernet 0/1/14
 dual-mode
!
interface ethernet 0/1/15
 dual-mode
!
interface ethernet 0/1/16
 dual-mode
!
interface ethernet 0/1/17
 dual-mode
!
interface ethernet 0/1/18
 dual-mode
!
interface ethernet 0/1/19
 dual-mode
!
interface ethernet 0/1/20
 dual-mode
!
interface ethernet 0/1/21
 dual-mode
!
interface ethernet 0/1/22
 dual-mode
!
interface ethernet 0/1/23
 dual-mode
!
interface ethernet 0/1/24
 dual-mode
!
interface ethernet 0/1/25
 dual-mode
!
interface ethernet 0/1/26
 dual-mode
!
interface ethernet 0/1/27
 dual-mode
!
interface ethernet 0/1/28
 dual-mode
!
interface ethernet 0/1/29
 dual-mode
!
interface ethernet 0/1/30
 dual-mode
!
interface ethernet 0/1/31
 dual-mode
!
interface ethernet 0/1/32
 dual-mode
!
interface ethernet 0/1/33
 dual-mode
!
interface ethernet 0/1/34
 dual-mode
!
interface ethernet 0/1/35
 dual-mode
!
interface ethernet 0/1/36
 dual-mode
!
interface ethernet 0/1/37
 dual-mode
!
interface ethernet 0/1/38
 dual-mode
!
interface ethernet 0/1/39
 dual-mode
!
interface ethernet 0/1/40
 dual-mode
!
interface ethernet 0/1/41
 dual-mode
!
interface ethernet 0/1/42
 dual-mode
!
interface ethernet 0/1/43
 dual-mode
!
interface ethernet 0/1/44
 dual-mode
!
interface ethernet 0/1/45
 dual-mode
!
interface ethernet 0/1/46
 dual-mode
!
interface ethernet 0/1/47
 dual-mode
!
interface ethernet 0/1/48
 dual-mode
!
!
!
!
!
!
!
end

#-----------------------------------------------------------------------
