Posts Tagged ‘IOS’
DNSMASQ is both a DNS and DHCP server that is quick and efficient to run on Linux systems and is likely already running on your Linux box. If you’re in need of a quick DHCP server to run your environment to serve multiple DHCP scopes for different subnets in your VLAN, of which we all know the best practice is subnet == VLAN == Broadcast domain, then DNSMASQ is your go to guy and I prefer it over the ISC DHCPD server. This quick tutorial will go over the basics of how to get this setup and running and assumes you’re not going to utilize the DNS service.
Create a directory for your DHCP leases file:
sudo mkdir /opt/dnsmasq
#Disable the DNS server
#Setup the server to be your authoritative DHCP server
#Set the DHCP server to hand addresses sequentially
#Enable more detailed logging for DHCP
#Set your DHCP leases file location
#Create different dhcp scopes for each of the three simulated subnets here, using tags for ID
#Format is: dhcp-range=<your_tag_here>,<start_of_scope>,<end_of_scope>,<subnet_mask>,<lease_time>
#Setup different options for each of the unique subnets, since default gateways will be different
#The format for this is: dhcp-options=<your_tags_here>,<option>,<option_value> - 3 is router
Once this is complete, enable your DHCP service to start automatically. You should also check your systems firewall/IPTABLES service(s) to ensure you have created rules to allow UDP traffic over port 67 and port 68, or you can just flush your IPTABLES and/or disable your firewall, your choice, this isn't a security blog so I'll leave the choice to you, the person who knows their environment better.
There has been some slight confusion and ambiguity around the “single-connection” configuration statement provided by Cisco switches and routers, including SAN MDS switches. As of this writing, Cisco Nexus 9000 NXOS switches on 7.0.3.I5.1 code do not support single-connection in their tacacs host configuration; however, certain MDS switches do. In either case, if you do find yourself wondering here for the answer, let me elaborate for you.
The purpose of single-connection is to multiplex all of your TACACS authentication requests using a single TCP oriented connection from the switch to the TACACS server. Using tac_plus, an open source TACACS server, you can absolutely set the single-connection bit from say, a Cisco 9706 MDS switch; however, upon packet analysis of any TACACS authentication requests you may discover the single-connection bit is set to 0.
Refer to draft-grant-tacacs-02 and scroll to the FLAGS section for an explanation of where you will, and should, see the single-connection bit set in the TACACS flag. Basically, you’ll only ever find the bit set in the initial setup of the connection so both the TACACS server and the client agree on single-connection TCP. Thus, instead of each and every TACACS request coming through as a unique TCP connection (essentially having to use multiple sockets, sockets being the 4-tuple of SRC IP, DST IP, SRC port, and DST port) the TACACS query and response messages are just carried over the single TCP connection.
If your system supports this, its worth attempting to see if it works as it can save some resources; however, your mileage may vary.
Why do VTP in the data center? I have absolutely no explanation for this, it is generally just a bad idea to use VTP to begin with. Perhaps “easy” is one argument, but look at the problems you face with it:
- Rogue switch with higher revision can screw the network
- ON some IOS versions, if not all, the VLAN configuration doesn’t reside in the startup-config
- Rogue switch can be used to gather VLAN information on the network, helping form an inside attack
In a data center you expect a highly available, reliable, and secure computing environment, this is something VTP simply doesn’t offer for a network in the data center. Look at the Nexus lineup, VTP is a feature which is disabled by default! What a great concept, finally! I’ll go ahead and just say it, if you’re using VTP in the data center, you’re just being lazy.
Yup, they have something similar now, here is the skinny:
Now, before you make a change, issue this command:
configure terminal revert timer <1-120> <--- in minutes
Go ahead and make your changes, if you get disconnected, it will rollback the configuration in the amount of time you selected.
If the configuration works and you want to commit the changes:
That's all folks, a "commit confirmed" for Cisco IOS.
Recently I have noticed a lot of confusion among people when configuring and forming port-channels on Cisco IOS equipment. I had someone recently say “Just configure the trunking commands under the interfaces and it’ll work. Now, while this will work, it is more or less, a hack. A port-channel/etherchannel is a logical interface holding certain configuration parameters which will absorb into the physical interface configuration when you apply a physical interface into the “channel-group”. The following describes how I setup etherchannel successfully each time, every time: Read the rest of this entry »
You can use tcpdump or wireshark but if you have a Linux box handy you can install: cdpr. It makes life easy like this:
Just follow the prompts for selecting the interface and wait for the cdp transmission to come through. Understand that some values, like Native VLAN, are in hexidecimal and you’ll need to convert it to decimal. Otherwise, happy hunting.
You can’t disable spanning-tree on a per-port bases in IOS but you can disable spanning tree per VLAN using the global command:
no spanning-tree vlan vlan-id
If you are working with the Nexus NX-OS and you want to redistribute static routes into EIGRP you MUST use route-maps. See below on how to use these in Nexus.
Core vs. Edge Routing Topology
There isn’t a lot of talk about this; however, there is a lot of training material that references this debate and makes recommendations for edge based routing. For those not familiar with the topic I am talking about “Campus LANs” and not ISP networks where you essentially have to push routing to the edge for some customers. In my article I am talking about Core vs Edge in the aspect of where we perform all of our routing in a “Campus LAN” Read the rest of this entry »
So there is the long standing debate of GUI Vs CLI in both the server and Networking world. There are quite a few angles to argue and I know that in this one single post I am not going to cover 100% of them and I am going to keep emotion out of this and stick to the facts and try to do a “Qualitative review of the two Read the rest of this entry »