The FreeBSD Diary

The FreeBSD Diary (TM) Remember
I remember
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 JAIL and DHCP glitches
Author: VVK 
Date:   27-12-01 09:03

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<

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 JAIL and DHCP glitches   new
VVK 27-12-01 09:03 
 Re: JAIL and DHCP glitches   new
WCollier 27-12-01 09:11 
 Re: JAIL and DHCP glitches   new
VVK 27-12-01 10:03 
 Re: JAIL and DHCP glitches   new
David DeTinne 28-12-01 08:38 
 Re: JAIL and DHCP glitches   new
VVK 02-01-02 16:21 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org