Powered By Blogger

Saturday, May 8, 2010

lets talk about cisco switch fundamentals :

Adding an IP to the switch and not wasting a port .
_______________________________________
                        enable
                        conf term
                        int vlan1
                        ip addre 10.196.205.5 255.255.255.255
                        no shutdown
                        exit
                        ip default gateway 10.196.205.1
____________exit ______________________________


Removing an IP from a switch
enable
conf ter
int vlan 1
no ip addr
exit



configuring Interfaces and ports
enable
conf ter
int f0/0
duplex full ( also can be auto , half )
speed auto
spanning-tree portfast (use this only if connected to a server or workstation  , it disables spanning tree protocol )

and one can also use

int range f0/0-10 for configuring multiple ports at a time .

one can also use the following shell script

> i=1;while [ $i -lt 25 ]; do echo "int fast0/$i"; echo speed auto; echo duplex auto; echo span portfast; let i+=1; done;

No comments:

Post a Comment