Posts

Spanning tree, PVST lab - GNS3

Image
as usual, i'm using cisco 3740 with additional slot NM-16ESW. for the 1st stage, we only use one link for every connection between every switch (i'll refer the router as the switch for the rest of the tutorial) configure on D1, port fast 1/1 and 1/7   no shutdown  switchport trunk encap dot1q  switchport mode trunk on D2, no span tree yet on D2 because all port still down   D2(config)#do sh span br  No spanning tree instances exist. configure the same we did on D2 for port 1/1 and 1/3 immediately after port change to trunk mode, you'll notice that it is in the listenin(LIS) mode this is when they running the algorithm to find a loop later the status will change to (learn)LRN then (forwarding)FWD   D2(config-if)#do sh sp br   ...   Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID   ----------...

ubuntu 9.10 - "Failed to execute child process "testparm" (No such file or directory)"

Image
when i want to share my folder between ubuntu 9.10 and window 7 i got this message. "Failed to execute child process "testparm" (No such file or directory)" all you need to do to resolved this just simply upgrade your samba *update=contact the server to check all the package are sync with the server   upgrade=make sure all package version are latest and up to date type = sudo apt-get upgrade samba

don't mess with Network/Sys Admin

Image

simple HSRP - inter vlan routing with external router (subinterface)

Image
This lab use 2 Cisco 2600 series router and 1 Cisco 3560 switch. in this lab i just use 1 vlan, it didn't work when i have multiple vlan. will work around to solve this problem. primary gateway is on R1, everytime R1 fail, R2 will take over the gateway. configure sub interface for fa 0/1 on R1  interface FastEthernet0/1  no ip address  duplex auto  speed auto ! interface FastEthernet0/1.1  description MG VLAN  encapsulation dot1Q 1 native //follow the vlan number, in this case HSRP for vlan 1  ip address 172.16.1.2 255.255.255.0  standby 1 ip 172.16.1.9 //choose a group number, must be same with the other side  standby 1 priority 150 //default value is 100, higher number got the priority to be primary configure sub interface for fa 0/0 on R2  interface FastEthernet0/0  no ip address  duplex auto  speed auto ! interface FastEthernet0/0.1  encapsulation dot1Q 1 native  ip address 172.16.1.3 255.2...

Cisco Router password recovery

Image
please note that this routine may not work on some Cisco models ---- reboot the router by power off and on the device when it started to boot, press break key while holding the control key this will bring you to the rommon mode, once in, type confeg 1st option will prompted  'do you wish to change the configuration? y/n  [n]:' answer with ' y ' after that press 'n' for all the option except this line 'enable  "ignore system config info"? y/n  [n]:' , type ' y' then type reset after reboot, you will notice from the show version that your register now is set to 0x2142, this is config bypass mode if you want to keep previous startup config , copy startup to running config then change the password if you want a fresh start, just simply erase starup config by overwrite running into startup config last !! don't forget to change register to normal mode again, type config-register 0x2102 , copy run star a...

Inter VLAN routing with CEF - GNS3

Image
Place your GNS3 router as below, i use Cisco 3640 with additional slot NM-16ESW to act as a layer 3 switch for the layer 2 switch, set the properties as below port 11 access port for vlan 100 port 12 access port for vlan 200 port 13 trunk, dot1q encapsulation create vlan 100 and 200 on router Router>en Router#vlan da Router(vlan)#vla 100 repeat the same to create vlan 200 enable inter vlan routing Router(config)#ip routing Router(config)# configure the vlan interface(routed interface for that vlan), vlan 1 is for management interface Vlan1  ip address 172.16.1.1 255.255.255.0 ! interface Vlan100  ip address 192.168.100.1 255.255.255.0 ! interface Vlan200  ip address 192.168.200.1 255.255.255.0 configure trunking *always remember to no shutdown on interface, by default, like router, the interface is shutdown, unlike switch. Once the interface is up, trunk will work then the int vlan will be up Router(config)#int fa 0/1 Router(co...

GNS3 - install and configure VPCS to use with Linux (ubuntu)

Image
1.download from here  VPCS 2.extract and look for vpcs (vpcs.exe is for windows) 3.open terminal - issue command  chmod +x vpcs 4.issue command gedit startup.vpc to configure the ip address, mask and gateway for VPCS.    add same line like picture below    put # for the rest of the line 5.now start VPCS use command  ./vpcs (start)    use show to see all the configured ip address 6.open gns3 -> edit -> symbol manager 7.choose pc symbol from ' available symbol ' to ' customized nodes '     on name = anyname ie, pc1     on type = cloud     click ok 8.drag n drop pc1 n pc2 in GNS3     double click on pc1     click on ' C0 '     go to tab ' NIO UDP '     hold.... 7.go back to step 4     now check n remember the LPORT n RPOR 8.resume step (7)     on local port ...