ifconfig problem in FreeBSD Jail
Gaurav kansal
gaurav.kansal at nic.in
Thu Mar 15 12:34:19 UTC 2012
Hi Kurt,
Thanks for prompt reply.
I got the following output:
ifconfig em0 10.1.27.82 netmask 255.255.255.0
ifconfig: ioctl (SIOCDIFADDR): permission denied
I am not able to know where I have to configure so that jail got permissions
for ipconfig.
-----Original Message-----
From: Kurt Jaeger [mailto:pi at opsec.eu]
Sent: Wednesday, March 14, 2012 6:43 PM
To: Gaurav kansal
Subject: Re: ifconfig problem in FreeBSD Jail
Hi!
> I am trying to set up the FreeBSD Jail first time for my knowledge
purpose.
>
> I install FreeBSD 9 in VMware Workstation.
>
>
>
> I use the following tutorial for setting up Jail in FreeBSD
>
> <http://www.freebsd.org/doc/handbook/jails-application.html>
http://www.freebsd.org/doc/handbook/jails-application.html
>
>
>
> Everything works fine except network configuration.
>
>
>
> When I am trying to "ifconfig", it is giving me an error.
Which command are you typing and what is the error message ?
> ifconfig
>
> em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
> 1500
>
> options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
>
> ether 00:0c:29:05:76:e2
>
Looks fine, you have an ethernet interface called em0, but it has no IP
addresses assigned.
The command:
ifconfig em0 192.168.10.1 netmask 255.255.255.0
would assign one. Give it a try!
--
<mailto:pi at opsec.eu> pi at opsec.eu +49 171 3101372
8 years to go !
More information about the freebsd-jail
mailing list