Wednesday, December 3, 2008

Resolving "show vlan" status


Due to some error which we come across in the pass, we decided to clear all settings and configuration in the 2950 Switch.

We basically used this command "clear config all" followed by

Cat2950# write erase
Erasing the nvram filesystem will remove all files! Continue? [confirm]y[OK]
Erase of nvram: complete
Cat2950#
Cat2950# reload

After which we Delete the VLAN information from Flash or NVRAM, and reload the switch.

Next we key in the command to create the vlan database again.

Cat2950(vlan)# vtp transparent
Setting device to VTP transparent mode
Cat2950(vlan)# vlan 10 name Internet
VLAN 10 added:
Name: Internet
Cat2950(vlan)# vlan 20 name Security
VLAN 20 added:
Name: Security
Cat2950(vlan)#exit

Tuesday, December 2, 2008

VLSM calculation

The connection between (PIX) E0 and the (router BR) Fa0/0 does it need to have a calculation of additional 2 hosts?

The connection which branch out from PIX to E2 and E1, does it need to have separate calculation?

Thanks

NEVER SHOW VLAN !!!!



After i configure the vlan, when i type show vlan, those vlan that i previously add nv show !
but when i type "show run" it do show that the ports are assigned to each designated vlan !
MOST IMPORTANTLY.. the switch nv show green light.. it show orange light ! i type no shut for the port, but result still the same!

Monday, December 1, 2008

[guide] Syslog-ng guide and how to test it out

After you have finally installed syslog-ng successfully, you can test it out by configuring the router/switch to be syslog client.

Here is the guide on how to configure cisco router for the syslog

Syslog Configuration and Cisco Devices
Syslog reserves facilities "local0" through "local7" for log messages received from remote servers and network devices. Routers, switches, firewalls and load balancers each logging with a different facility can each have their own log files for easy troubleshooting. The following examples will show how to have a different log file for each class of device.
If you have a large data center, then you may also want to switch off all logging to /var/log/messages as suggested above for the home/SOHO environment. In all the network device configuration examples below we are logging to the remote Linux logging server 192.168.1.100 which we set up in the previous section.

Cisco Routers
By default Cisco routers send syslog messages to their logging server with a default facility of local7. We won't set the facility in this case, but we can tell the router to timestamp the messages and make the messages have the source IP address of the loopback interface.

service timestamps log datetime localtime
no logging console
no logging monitor
logging 192.168.1.100 <== your log server IP

Catalyst CAT Switches running CATOS
By default Cisco switches also send syslog messages to their logging server with a default facility of local7. We won't change this facility either, therefore making routers and switches log to the same file.

set logging server enable
set logging server 192.168.1.100 <== your log server IP
set logging level all 5
set logging server severity 6

If you have any problem with the configuration, please post it to the comment box.

[guide] To solve the issue on the previous 2 posts

To solve the problem on the linux debian linux keeps rebooting in VMware, please change the Harddisk type to Other Linux 2.6 kernel

For the second issue, syslog-ng can be easily installed via apt-get
Just issue this command:
apt-get install syslog-ng
You should get the whole package including their dependencies installed.