dhcpserver subnetmask | G | Configure subnet mask for DHCP | switch(config)#dhcpserver subnetmask | |
[Subnet mask] | clients | 255.255.255.0 | ||
| ||||
dhcpserver gateway | G | Configure gateway for DHCP clients | switch(config)#dhcpserver gateway 192.168.1.254 | |
[Gateway] |
|
| ||
|
|
|
| |
dhcpserver dnsip | G | Configure DNS IP for DHCP clients | switch(config)#dhcpserver dnsip 192.168.1.1 | |
[DNS IP] |
|
| ||
|
|
| ||
dhcpserver leasetime | G | Configure lease time (in hour) | switch(config)#dhcpserver leasetime 1 | |
[Hours] |
|
| ||
|
|
|
| |
dhcpserver ipbinding | I | Set static IP for DHCP clients by port | switch(config)#interface fastEthernet 2 | |
[IP address] |
| switch(config)#dhcpserver ipbinding 192.168.1.1 | ||
|
| |||
show dhcpserver configuration | P | Show configuration of DHCP server | switch#show dhcpserver configuration | |
show dhcpserver clients | P | Show client entries of DHCP server | switch#show dhcpserver clients | |
show dhcpserver | P | Show | switch#show dhcpserver | |
| DHCP server |
| ||
|
|
| ||
no dhcpserver | G | Disable DHCP server function | switch(config)#no dhcpserver | |
|
|
| ||
|
|
|
| |
security enable | G | Enable IP security function | switch(config)#security enable | |
|
|
| ||
|
|
|
| |
security http | G | Enable IP security of HTTP server | switch(config)#security http | |
|
|
| ||
|
|
|
| |
security telnet | G | Enable IP security of telnet server | switch(config)#security telnet | |
|
|
| ||
|
|
|
| |
security ip | G | Set the IP security list | switch(config)#security ip 1 192.168.1.55 | |
[Index(1..10)] [IP Address] |
|
| ||
|
|
| ||
|
|
|
| |
show security | P | Show the information of IP security | switch#show security | |
|
|
| ||
|
|
|
| |
no security | G | Disable IP security function | switch(config)#no security | |
|
|
| ||
|
|
|
| |
no security http | G | Disable IP security of HTTP server | switch(config)#no security http | |
|
|
| ||
|
|
|
| |
no security telnet | G | Disable IP security of telnet server | switch(config)#no security telnet |
3.1.4Port Commands Set
Table 3.4: Port Commands Set
| Netstar Commands |
| Level |
| Description |
| Example |
|
|
|
|
|
| ||||
|
|
|
|
|
|
|
|
|
| interface fastEthernet |
|
| Choose the port for modification. | switch(config)#interface fastEthernet 2 | |||
| [Portid] | G |
|
|
|
| ||
|
|
|
|
|
| |||
| duplex |
|
| Use the duplex configuration | switch(config)#interface fastEthernet 2 | |||
| [full half] | I | command to specify the duplex | |||||
|
|
| mode of operation for Fast |
|
| |||
|
|
|
|
| Ethernet. |
|
| |
|
|
|
|
|
| |||
| speed |
|
| Use the speed configuration | switch(config)#interface fastEthernet 2 | |||
| [101001000auto] |
|
| command to specify the speed | ||||
|
|
| I | mode of operation for Fast |
|
| ||
|
|
| Ethernet., the speed can’t be set to |
|
| |||
|
|
|
|
|
|
| ||
|
|
|
|
| 1000 if the port isn’t a giga port.. |
|
| |
|
|
|
|
|
| |||
| no flowcontrol | I | Disable flow control of interface | |||||
|
|
|
|
|
|
| ||
|
|
|
|
|
| |||
| security enable |
|
| Enable security of interface | switch(config)#interface fastEthernet 2 | |||
|
|
| I |
|
| |||
|
|
|
|
|
| |||
| no security |
|
| Disable security of interface | switch(config)#interface fastEthernet 2 | |||
|
|
| I |
|
| |||
|
|
|
|
|
|
|
|
|
29 | Chapter3 |