Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Mar 2012 18:02:51 +0530
From:      Gaurav kansal <gaurav.kansal@nic.in>
To:        'Kurt Jaeger' <pi@opsec.eu>
Cc:        freebsd-jail@freebsd.org
Subject:   RE: ifconfig problem in FreeBSD Jail
Message-ID:  <000001cd02a7$bd6b4410$3841cc30$@nic.in>
In-Reply-To: <20120314131318.GP44287@home.opsec.eu>
References:  <002c01cd01e2$bbb7bd30$33273790$@nic.in> <20120314131318.GP44287@home.opsec.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@opsec.eu> pi@opsec.eu            +49 171 3101372
8 years to go !




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000001cd02a7$bd6b4410$3841cc30$>