[VLAN] DHCP question....

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm having trouble getting the kernel to pick up packets for a DHCP 
server (for example) on the vlan interface I set up. One twist, I've 
configured the VLAN to use a different MAC address from the primary real 
interface and it uses DHCP too.  Here are the steps I followed:

1) vconfig set_name_type VLAN_PLUS_VID_NO_PAD
2) vconfig add eth1 195
3) vconfig set_flag vlan195 1 1
5) ifconfig vlan195 down
6) ifconfig vlan195 hw ether 10:10:10:10:10:10
7) ifconfig vlan195 up
8) iptables -A OUTPUT -o vlan195 -m udp -p udp --sport 67:68 -j ACCEPT
9) iptables -A INPUT -i vlan195 -m udp -p udp --dport 67:68 -j ACCEPT

Note: For some reason, the DHCP offer is not picked up by the vlan 
interface...However, ethereal shows the DHCPoffers....

Any help debugging would really be appreciated!

DHCPclient output:

[root@qa vlan]# dhclient vlan195
Internet Systems Consortium DHCP Client V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
 
Listening on LPF/vlan195/10:10:10:10:10:10
Sending on   LPF/vlan195/10:10:10:10:10:10
Sending on   Socket/fallback
DHCPDISCOVER on vlan195 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on vlan195 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on vlan195 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on vlan195 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on vlan195 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on vlan195 to 255.255.255.255 port 67 interval 5
No DHCPOFFERS received.

No working leases in persistent database - sleeping.



Here is my config:

uname:

Linux qa.perfigo.com 2.4.21-4.EL #1 Fri Oct 3 18:13:58 EDT 2003 i686 i686 i386 GNU/Linux

O/S: RH Enterprise Linux AS release 3

ifconfig:
 
eth1      Link encap:Ethernet  HWaddr 00:30:48:80:44:8B
          inet addr:10.20.195.6  Bcast:10.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:14700 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4538 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1256944 (1.1 Mb)  TX bytes:1464296 (1.3 Mb)
          Base address:0xb400 Memory:f2000000-f2020000


vlan195   Link encap:Ethernet  HWaddr 10:10:10:10:10:10
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:11628 (11.3 Kb)

more /proc/net/vlan/vlan195

vlan195  VID: 195        REORDER_HDR: 1  dev->priv_flags: 1
         total frames received:            0
          total bytes received:            0
      Broadcast/Multicast Rcvd:            0
 
      total frames transmitted:           34
       total bytes transmitted:        11628
            total headroom inc:            0
           total encap on xmit:            0
Device: eth1
INGRESS priority mappings: 0:0  1:0  2:0  3:0  4:0  5:0  6:0 7:0
EGRESSS priority Mappings:


IPtables:
[root@qa vlan]# iptables -nvL
Chain INPUT (policy ACCEPT 184K packets, 21M bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     udp  --  vlan195 *       0.0.0.0/0            0.0.0.0/0          udp dpts:67:68
 
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
 
Chain OUTPUT (policy ACCEPT 175K packets, 19M bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     udp  --  *      vlan195  0.0.0.0/0            0.0.0.0/0          udp spts:67:68


Thanks!
Steve,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lanforge.com/pipermail/vlan/attachments/20041116/744540f8/attachment.htm

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux