Guest User!

You are not Sophos Staff.

[9.065][ANSWERED] DHCP over vlans

my cable provider requires me to use DHCP and i need to transport this network connection with a VLAN. 

I tried the latest beta code and I still could not enable DHCP when I select a vlan tagged network connection.

any idea on when we can be able to do this?  its on the list i think for this release.

Dave P
  • Its not official supported but you can get this by creating a normal VLAN interface,
    and change via confd-client program "type" and "gateway_type" to "dynamic" of the primary itfparams object.

    Cheers
     Ulrich
  • @da_merlin,
    Could you give an example of what the commands would be? I would need this feature, too...
    And is there a way to specify different mac adresses on the vlans?
    Oh, and would that work on 9.00, or does it need 9.1 beta?
    Thanks in advance...
  • can you put in some commands here ... i'm not realy that trained with the cc [:)]

    thanks a lot!

    Robert
  • Works for v9.0 too. No, there is no way to have different MACs on each VLAN interface.
    You need to find the correct interface object, then you need to find the corresponding itfparams object, which you have to change.


    VMWare:/root # cc get interfaces interfaces
    [
              'REF_DefaultInternal',
              'REF_IntPppDsl',
              'REF_IntEthLan',
              'REF_IntVlaSdf'
            ]

    VMWare:/root # cc get_object REF_IntVlaSdf
    {
              'autoname' => 0,
              'class' => 'interface',
              'data' => {
                          'additional_addresses' => [],
                          'bandwidth' => 0,
                          'comment' => '',
                          'inbandwidth' => 0,
                          'itfhw' => 'REF_ItfEthEth3IntelCorpo',
                          'link' => 0,
                          'macvlan' => 0,
                          'mtu' => 1500,
                          'name' => 'sdf',
                          'outbandwidth' => 0,
                          'primary_address' => 'REF_ItfPri233324',
                          'proxyarp' => 0,
                          'proxyndp' => 0,
                          'status' => 1,
                          'vlantag' => 55
                        },
              'hidden' => 0,
              'lock' => '',
              'nodel' => '',
              'ref' => 'REF_IntVlaSdf',
              'type' => 'vlan'
            }

    VMWare:/root # cc change_object REF_ItfPri233324 type dynamic
    REF_ItfPri233324

    VMWare:/root # cc change_object REF_ItfPri233324 gateway_type dynamic
    REF_ItfPri233324
  • great! will try that later on [:)] do you think this can have his way into this beta (to have this on the website too)?

    Robert
  • Hi Ulrich,

    me again [:)]

    i tried it right away, but seems not to work, type stays at "vlan" is that normal?


     firewall:/root # cc change_object REF_IntVla12DslMaint type dynamic
    REF_IntVla12DslMaint
     firewall:/root # cc change_object REF_IntVla12DslMaint gateway_type dynamic
    REF_IntVla12DslMaint
     firewall:/root # cc get_object REF_IntVla12DslMaint
    {
              'autoname' => 0,
              'class' => 'interface',
              'data' => {
                          'additional_addresses' => [],
                          'bandwidth' => 0,
                          'comment' => '',
                          'inbandwidth' => 0,
                          'itfhw' => 'REF_ItfEthEth1',
                          'link' => 1,
                          'macvlan' => 0,
                          'mtu' => 1500,
                          'name' => '12. DSL Maint',
                          'outbandwidth' => 0,
                          'primary_address' => 'REF_ItfPri1921680102',
                          'proxyarp' => 0,
                          'proxyndp' => 0,
                          'status' => 1,
                          'vlantag' => 7
                        },
              'hidden' => 0,
              'lock' => '',
              'nodel' => '',
              'ref' => 'REF_IntVla12DslMaint',
              'type' => 'vlan'
            }
     firewall:/root #
  • You have to change the primary_address object, not the interface itself.
    There are two types there... [:)]

    No, 9.1 is done, no additional features there.
  • Sure it does, its in the configuration. Its also in the backup.
Share Feedback
×

Submitted a Tech Support Case lately from the Support Portal?