Wednesday, May 29, 2013

Change MTU size for a Network Interface in Redhat linux


During the 11.2.0.3 GI installation, Oracle recommend to change MTU of private network interface from 9000 to 1500. 

Here are the steps I followed:

1. Verify current mtu setting, bond1 is priivate interface.

$ /bin/netstat -in                      
Kernel Interface table
Iface       MTU Met    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
bond1      9000   0     2556      0      0      0     1629      0      0      0 BMmRU
eth0       1500   0  4246139      0      0      0  4779910      0      0      0 BMRU
eth2       9000   0     1269      0      0      0      816      0      0      0 BMsRU
eth3       9000   0     1287      0      0      0      813      0      0      0 BMsRU
lo        16436   0    99006      0      0      0    99006      0      0      0 LRU

2. Change mtu in ifcfg-bond1

$ vi /etc/sysconfig/network-scripts/ifcfg-bond1

DEVICE=bond1
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
NETMASK=255.255.0.0
IPADDR=10.10.10.170
MTU=9000
PEERDNS=yes
IPV6INIT=no
BONDING_OPTS="mode=0 miimon=100 primary=eth2"

Chagne MTU to 1500


3. Restart private network interface.

service network restart bond1

4 Verify that mtu size changed.

$ /bin/netstat -in
Kernel Interface table
Iface       MTU Met    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
bond1      1500   0        0      0      0      0        9      0      0      0 BMmRU
eth0       1500   0      100      0      0      0       73      0      0      0 BMRU
eth2       1500   0        0      0      0      0        6      0      0      0 BMsRU
eth3       1500   0        0      0      0      0        3      0      0      0 BMsRU
lo        16436   0   118694      0      0      0   118694      0      0 

No comments:

Post a Comment