Friday, August 14, 2009

802.1q configuration on Linux

My environment: RH FC8 x86_64

1. Make sure the 802.1q module is added to the kernel 

modprobe 8021q

2. Add a subinterface.  In this example 170 is the 802.1q VLAN ID.

vconfig add eth0 170

3. Create the NIC configuration file

/etc/sysconfig/network-scripts/ifcfg-eth0.170

DEVICE=eth0.170
BOOTPROTO=none
IPADDR=192.168.170.1
NETMASK=255.255.255.0

4. Restart the network service

/etc/init.d/network restart

Tuesday, August 4, 2009

Enable IPv6 function on 3560/3750

You’ll need the proper SDM template to enable v4, v6 dual stack on 3560/3750/3560E/3750E

Switch(config) # sdm prefer dual-ipv4-and-ipv6 default

IPv6 General Prefix

My environment: Cisco Catalyst 3560E

IOS: 12.2(50)SE2, Advanced IP services

This is a handy feature provides quick and easy way to deploy prefix changes

Example:

ipv6 general-prefix DEV C0:A8:A::/48

int fa0/1

ipv6 addr DEV ::1/48

Your IPv6 address of fa0/1 is equal to C0:A8:A::1/48

Configuring IPv6 address on Linux

My environment: RH FC8 x86_64

To enable IPv6 globally, modify the file

# vi /etc/sysconfig/network

And append the following:

NETWORKING_IPV6=yes

Then change the NIC config file

# vi /etc/sysconfig/network-scripts/ifcfg-eth0

And append the following IPv6 parameters:

IPV6INIT=yes
IPV6ADDR=<IPv6-IP-Address>
IPV6_DEFAULTGW=<IPv6-IP-Gateway-Address>

If you want to acquire the IPv6 address via DHCPv6 server, first make sure you have the DHCPv6 client installed:

# rpm –q dhcpv6-client

then modifiy the NIC config file and append the following parameters:

# vi /etc/sysconfig/network-scripts/ifcfg-eth0

IPV6INIT=yes
DHCPV6C=yes

Edit the main DHCPv6 client config file

# cp /usr/share/doc/dhcpv6-client-*/dhcp6c.conf /etc/
# vi /etc/dhcp6c.conf

interface eth0 {
    send rapid-commit;
    request domain-name-servers;
};

Restart the network service

# /etc/init.d/network restart

Then check your eth0 configuration to make sure you get the ipv6 address:

# ifconfig eth0

Monday, August 3, 2009

Configuring Windows 2003 Server DNS in IPv6 environment

My environment: Windows 2003 Server Enterprise edition

You can configure your Windows 2K3 server to listen over IPv6, what you need to do is to enable it through command prompt:

dnscmd /config /EnableIPv6 1

Then restart your DNS service.

To add an IPv6 host record, you’ll need to add an “AAAA” record instead of an “A” host record like you did in IPv4.

Right click on your domain name in the forward lookup zones, choose “Other New Records”

image

Add a new AAAA record:

image

image

To check if it is working, you can either using nslookup on Windows or dig on Linux:

dig -6 ad-v6.ucdemo.com @c0:a8:a::c8 AAAA

image

nslookup –q=AAAA ad-v6.ucdemo.com

image

Configuring Static ipv6 address and default route on Windows 2003 Server

My environment: Windows 2003 Server Enterprise Edition

There is no GUI for ipv6 static address configuration, you can configure it through the netsh CLI:

netsh interface ipv6 set privacy disabled


netsh interface ipv6 add address interface="Local Area Connection" address=2001:1:1::200 store=persistent


netsh interface ipv6 add route ::/0 interface="Local Area Connection" 2001:1:1::1 store=persistent

To verify:


ipconfig /all


ping 2001:1:1::1


netstat -rn