“For optimal performance, set the VPC adapter MTU to 1450.”
I understan this means I need to setup the GREEN interface with a MTU of 1450, instead of the default of 1500:
-bash-5.1$ ip a show green0
3: green0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc cake state UP group default qlen 1000
link/ether 5a:00:03:e2:ed:38 brd ff:ff:ff:ff:ff:ff
inet 10.20.30.2/28 scope global green0
valid_lft forever preferred_lft forever
My questions:
How to change the MTU for GREEN interface?
How to use DHCP to get clients in the GREEN network to use the new MTU value?
I think that those configurations can be made with the WUI (Network > DHCP Server > Additional DHCP options). But I’d like some one to confirm. So I suppose it will be something like this:
Option name: interface-mtu
Option value: 1450
But what about the IPFires’s GREEN adapter itself? I think you should set the MTU in the adapter first.
The dhcp.conf.local is the correct file for additional changes to dhcp but you can only use it to add global dhcp parameters as the contents are appended to the end of the normal dhcp.conf file. So you can’t add commands related just to a subnet like Green.
The main dhcp.conf file will be overwritten every time you do any change to the dhcp wui page
Hi Jon,
You are absolutely right, that is the place for that mtu option and it can be limited to the GREEN interface as well be selecting the Option scope:
I can confirm that adding the option in the WUI works to pass MTU value to dhcp clients. I tested this with an Ubuntu client and it gets the desired MTU value. This answers one of my questions.
But IPFire’s green interface is still in 1500:
ifconfig | grep mtu | grep green
green0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
Is my understanding that the MTU size should be the same for the network. In this case the GREEN network (IPFire + DHCP clients).
And I don’t think any changes in DHCP server configuration would change IPFire’s GREEN adapter MTU size. It only affects the clients. Please correct me if I’m wrong.
Carlos, you can add a line in /etc/sysconfig/rc.local to force 1500 to the green interface.
Anything in that file executes after boot.
You can find the actual command, am not in the lab at the moment.