So I've looked around for a way to change the MTU of interfaces on XenServer 6.2, but can't find anything that works for me ...
One method spoke about changing the ifcnfg-intX
files in the /etc/sysconfig/network-scripts
directory, but the files just aren't there ... The only one there is the ifcnfg-lo
file. Do I just need to create a file for each interface?
Then I thought, I'll just make a startup script:
#!/bin/bash
#Saved as /etc/init.d/mtuchange.sh
#Change mtu of interfaces
ifconfig xenbr0 mtu 1454
ifconfig xenbr1 mtu 1454
ifconfig eth0 mtu 1454
ifconfig eth1 mtu 1454
This script works when ran in console.
So, to make it run at start:
ln -s /etc/init.d/mtuchange.sh /etc/rc3.d/S99mtuchange
But, it wont run ...
The reason I need to change the MTU, is for some strange reason, XenCenter can't connect with the MTU being the default of 1500, it has to be 1454
Anyone know what I'm doing wrong?
S99
in rc3.d so that it runs last, as I ... Oh nevermind/etc/network/interfaces
where you defined the interface's IPs ? Can you show what it looks like ?interfaces
file ... It doesn't even have the/etc/network
dir Lol ... I've been looking around for some documentation on how to edit network configurations, but no luck so far :( ... The only way I've found to change the config, is either with XenCenter (Which doesn't let you change the MTU) or through xsconsole, which also doesn't let you change itxe vif-param-set uuid=<vif_uuid> other-config:mtu=1454
(I believe "vif-uuid" stands for the UUID of the virtual interface, and I'm not sure if that will persist across reboots of the host).ifconfig -a
somewhere so you know what was the state right after those three ifconfig commands?