Date: Thu, 27 Dec 2001 01:00:01 -0500 (EST) From: VVK <vvk@ottawa.com> To: freebsd-questions@freebsd.org Subject: anyone running JAIL with DHCP setup (especially @HOME)??? HELP! Message-ID: <200112270600.BAA08823@mail.ottawa.com>
next in thread | raw e-mail | index | archive | help
Hi, I've been running jail successfully for almost 2 years now. Today my cable company changed static configuration to DHCP one. I've reconfigured my to use DHCP, however, jail would not work. in /etc/rc.conf: ifconfig_ed0="DHCP" ifconfig_ed0_alias0="inet 192.168.0.30 netmask 255.255.255.0" ifconfig_ed1="inet 192.168.0.1 netmask 255.255.255.128" ifconfig_ed1_alias0="inet 192.168.0.10 netmask 0xffffffff" hostname="crxxxxxx-E" inetd_flags="-wW -R 1024 -a 192.168.0.30" portmap_enable="YES" nfs_client_enable="YES" nfs_reserved_port_only="YES" nfs_server_enable="YES" # using this to mount drives/directories from jail in /etc/dhclient.conf send host-name "crxxxxxxx-E"; # Put your client IP here request subnet-mask, broadcast-address, routers, domain-name-servers; now, the problem is with the following: jail works fine (SSH/TELNET/etc) when i don't have /etc/resolv.conf. however, i cannot connect to any host from jail as it cannot resolve it. as soon as i put it in with correct DNS numbers, it starts giving me hard time: connects, say, to port 22, but no SSH header is displayed and same with other daemons.. inside jail, i have the following: root@me:/home/me>>ifconfig -a ed0: flags=8843 mtu 1500 ether 00:50:ba:cd:9a:fa ed1: flags=8843 mtu 1500 inet 192.168.0.10 netmask 0xffffffff broadcast 192.168.0.10 ether 00:50:ba:cd:b9:60 lo0: flags=8049 mtu 16384 there is no address associated with ed0 (my external nic) while in host system it shows the following: ed0: flags=8843 mtu 1500 inet 24.xx.xx.247 netmask 0xffffff00 broadcast 24.xx.xx.255 ether 00:50:ba:cd:9a:fa ed1: flags=8843 mtu 1500 inet 192.168.0.1 netmask 0xffffff80 broadcast 192.168.0.127 inet 192.168.0.10 netmask 0xffffffff broadcast 192.168.0.10 ether 00:50:ba:cd:b9:60 lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 output of jail: Skipping disk checks ... Doing initial network setup:. ifconfig: ioctl (SIOCDIFADDR): permission denied lo0: flags=8049 mtu 16384 Additional routing options: TCP keepalive=YESsysctl: net.inet.tcp.always_keepalive: Operation not permitted . Routing daemons:. Additional daemons: syslogd. Doing additional network setup:. Checking quotas: done. Enabling quotas: done. Starting final network daemons:. Turning on accounting: accton: /var/account/acct: Operation not permitted ELF ldconfig path: /usr/lib /usr/lib/compat /usr/local/lib a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout Starting standard daemons: inetd cron sshd. Initial rc.i386 initialization:. Configuring syscons: blanktime/etc/rc.syscons: cannot open /dev/ttyv0: no such file . Additional ABI support:. Starting local daemons:. Local package initialization: idled. Additional TCP options: log_in_vain=YESsysctl: net.inet.tcp.log_in_vain: Operation not permitted sysctl: net.inet.udp.log_in_vain: Operation not permitted ^^^^^^ e What might be the problem? Have you ever heard about this? Is there a fix? Would greatly appreciate any helo/hints. THANK YOU< Get your Free email at http://mail.ottawa.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112270600.BAA08823>