Disabling / Turning off  (or on) DHCP for IPV4 and IPV6 from Terminal

It took some looking to find this info, so I figured I'd post it to save someone else a lot of looking. 
networksetup -setv4off Ethernet
networksetup -setv6off Ethernet
networksetup -setdhcp Ethernet
networksetup -setv6automatic Ethernet
You can change "Ethernet" to the name of the network service (adapter) for other interfaces (ie "Wi-Fi").  Quotes may be required if there is a space in the adapter name.  "networksetup -listallnetworkservices" can give you a list of the adapters as they'd need to be entered.
Came in handy where we needed to disable internet access for non-admin users of a Mac, and easily script a toggle for admins to use for updating the system or their own use.
Reference:
https://developer.apple.com/library/mac/documentation/darwin/reference/manpages/ 10.7/man8/networksetup.8.html?useVersion=10.7

Hi Amit,
Thank you very much for your qucik response.
However my requirement is that the Bookmark section window should be completely disabled or should not be displayed at all to the user when he opens that PDF which might contains 2 or 3 pages of data
Any solution for this from BO side?
Thanks
Naga Nanda Kishore.

Similar Messages

  • Dynamic DNS for ipv4 AND ipv6?

    tl;dr: do you know any dynamic dns service and updater daemon that supports both ipv4 and ipv6?
    Hi,
    ever since my provider supplied me with a proper dual stack account (real ipv4, real ipv6) for internet access I got some kind of little problem regarding the services I host at home. So this is mainly about email. I have a server sitting behind my router that has an open submission and IMAPS port. For ipv4 I've been using the NAT and dyndns features of my router (fritzbox) without any problem. For ipv6 there is no NAT (at least as far as my router is concerned). What I can do though is to open the firewall for incoming ports dynamically based on the interface identifier. So if someone wants to connect to an ipv6 address that would map to my server the router knows to not block the traffic. For this to work though I need update a dynamic DNS record with the public ipv6 address that my server gets to use (something out of the prefix my provider assignes me). This server is an arch linux box. I tried to use inadyn-mt with some systemd unit file I found through google but this does not seem to work right. When I'm in ipv4-only networks (on a mobile connection for example) I often can't resolve the right ip address of my server through dyndns. The thing is that my server doesn't know about a changed ipv4 address because this is handled by the router. It does only know about when his own ipv6 address changes/expires. Based on when this happens inadyn-mt might fire an update to dyndns and with that also pick up the new ipv4 address, but this is not guaranteed.
    Any suggenstions, tool and/or service proposals? Is there a way dns-wise to add a CNAME alias just for A records and not for AAAA?

    I currently use cloudflare as the DNS servers for my domain as it's free and allows to update certain records with their API. I only use it for IPv4, but since they support AAAA records, I assume it will work for IPv6 just as well. It should be quite simple for you to update the script to get the ip of a given interface instead of fetching it from the net.
    #!/bin/sh
    # modified by jfro from http://www.cnysupport.com/index.php/linode-dynamic-dns-ddns-update-script
    # Uses curl to be compatible with machines that don't have wget by default
    # modified by Ross Hosman for use with cloudflare.
    cfkey=<your api key>
    cfuser=<your username>
    cfhost=<hostname you want to update>
    WAN_IP=`curl -s http://icanhazip.com/`
    if [ -f $HOME/.wan_ip-cf.txt ]; then
    OLD_WAN_IP=`cat $HOME/.wan_ip-cf.txt`
    else
    OLD_WAN_IP=""
    fi
    perl -i -pe 'chomp if eof' /var/log/cfclient.log
    if [ "$WAN_IP" = "$OLD_WAN_IP" ]; then
    echo -ne "." >> /var/log/cfclient.log
    else
    echo $WAN_IP > $HOME/.wan_ip-cf.txt
    echo -ne "\nUpdating IP to $WAN_IP\n" >> /var/log/cfclient.log
    curl -s https://www.cloudflare.com/api.html?a=DIUP\&hosts="$cfhost"\&u="$cfuser"\&tkn="$cfkey"\&ip="$WAN_IP" >> /var/log/cfclient.log
    fi
    echo -ne "\n" >> /var/log/cfclient.log

  • Possible to use HSRP for ipv4 and ipv6 on Catalyst c3750x-48-TE ?

    I have the newest IOS 15.2 on my two Switches.
    I know that this cofiguration with IOS 12.x not work

    I think HSRP for IPv6 is supported from 12.2(46)SE. So you should be able to configure it in 15.x
    -Nagendra

  • Problem running apache dual stack IPv4 and IPv6

    Hello!
    I am running a single Lion-Server with one public IPv4 address. Because my Provider is able to support IPv6 now, I ordered a public IPv6 address for my server. (To learn IPv6)
    I setup IPv6 address and setup the firewall with ip6fw - everything works fine, I can connect to ssh and afp via IPv4 or IPv6 but when I try to connect to my wiki over IPv6 I get the certificate question (unknown certificate ... blah) click continue and the certificate is loeded againe - I end up in an infinte loop of certificate questions.
    The part of the firewall config looks like this:
    20515 allow tcp from any to any 443
    20516 allow tcp from any to any 8443
    20517 allow tcp from any to any 1640
    I looked into apache config:
    /etc/apache2/sites/virtual_host_global.conf has this entries:
    Listen  *:443
    NameVirtualHost *:443
    Listen  *:80
    NameVirtualHost *:80
    I have only one domain and only one single virtual host as defined in /etc/apache2/sites/0000_any_443_.conf:
    ## Default Virtual Host Configuration
    <VirtualHost *:443>
            ServerAdmin [email protected]
            DocumentRoot "/Library/Server/Web/Data/Sites/Default"
            DirectoryIndex index.html index.php /wiki/ default.html
            CustomLog "/var/log/apache2/access_log" combinedvhost
            ErrorLog "/var/log/apache2/error_log"
            <IfModule mod_ssl.c>
                    SSLEngine On
                    SSLCipherSuite "ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM"
                    SSLProxyEngine On
                    SSLProtocol -ALL +SSLv3 +TLSv1
                    SSLCertificateFile "/etc/certificates/www.ABCDE.de.1A00F8DFC2738F25D26E3248A4C8F687D7EA7F32.cert.p em"
                    SSLCertificateKeyFile "/etc/certificates/www.ABCDE.de.1A00F8DFC2738F25D26E3248A4C8F687D7EA7F32.key.pe m"
                    SSLCertificateChainFile "/etc/certificates/www.ABCDE.de.1A00F8DFC2738F25D26E3248A4C8F687D7EA7F32.chain. pem"
                    SSLProxyProtocol -ALL +SSLv3 +TLSv1
            </IfModule>
            <Directory "/Library/Server/Web/Data/Sites/Default">
                    Options All +MultiViews -ExecCGI -Indexes
                    AllowOverride None
                    <IfModule mod_dav.c>
                            DAV Off
                    </IfModule>
            </Directory>
    </VirtualHost>
    I have not modified the apache config by hand until now - but this was an upgrade from Snow Leopard Server. At the moment I am a littel scared to upgrade to Mountain Lion server because this server runs mail and calender services for my company.
    I tried to setup "Listen" entry with dedicated IP-addresses, one for IPv4 and one for IPv6 but this only leads to the same problem - IPv4 works, IPv6 ends in an infinte loop.
    I found somewhere that I had to duplicate virtual hosts setup for IPv4 and IPv6 but afaik "Server.app" will overwrite it, right?
    Every hint is welcome, bye
    Christoph
    P.S. Sorry just saw that I posted to ML-Server discussions not Lion-Server, but maybe someone can tell me that I can upgrade without scare.
    Message was edited by: Christoph Ewering1

    Hello!
    Did some more testing and found that FireFox works with the loopback-address.
    https://[::1]/
    So, the address above works with FireFox after accepting the certificate - Safari loops in the dialog accepting the certificate.
    Then I tried the link-local-address but it looks like apache does not listen to that address at all
    Then I tried the global-address and got to:
    Safari looping in the certificate dialog
    FireFox brings an alert „sec_err_bad_database"
    BTW this tests were made on the server that runs the apache. So no firewall between the browser and the server.
    No one using Mac OS X server in a dual stack enviroment?
    Bye,
    eweri

  • Disable / Turn off Thumbnail / Icon Preview in Finder?

    Can't find any new/recent posts to solve this issue. I want to disable/turn-off the little icon preview in finder.
    I have to access a lot of images on a server at work. Image files(jpeg, eps, tiff, psd, ai, ect) that are typically 50MB and higher. So you can only imagine the amount of lag I get and the time I waste every time I click on a folder in list view.
    Is there any way to disable it? Just have it show a standard icon file type instead of it loading 100+ 8MB images in little tiny icons?
    I've already tried the View -> Show View Options -> unchecked 'Show icon preview' and applied it as 'Use as default'
    Its turn off for all folders but it is still loading the mini icon preview.
    (I'm on a Mac Pro - Mountain Lion)

    I've tried reinstalling Mavericks and I'm still having this issue. I'm considering wiping my drive and going back to Mountain lion. Qucktime player in Mavericks seems to suck. I'm having several other issues playing back older quictime files. Most play in Quicktime 7 but a lot have no quicklook previews. The sheer volume of prores files I shoot makes this extremely inconvenient for me. How can Apple not support their own Codec????

  • HT1414 forgot iphone 4 passcode  and I cant restore when connected to my computer. I get a message that says cant restore until I turn off find my iphone for the device, but I did go into icloud and erased the device. help plz!

    I forgot iphone 4 passcode  and I cant restore when connected to my computer. I get a message that says cant restore until I turn off find my iphone for the device, but I did go into icloud and erased the device. help plz!

    Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device: Several Alternative Solutions
    1. iOS- Forgotten passcode or device disabled after entering wrong passcode
    2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    3. Restoring iPod touch after forgotten passcode
    4. What to Do If You've Forgotten Your iPhone's Passcode
    5. iOS- Understanding passcodes
    6. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    7. iOS - Unable to update or restore
    Forgotten Restrictions Passcode Help
                iPad,iPod,iPod Touch Recovery Mode
    You will need to restore your device as New to remove a Restrictions passcode. Go through the normal process to restore your device, but when you see the options to restore as New or from a backup, be sure to choose New.
    You can restore from a backup if you have one from BEFORE you set the restrictions passcode.
    Also, see iTunes- Restoring iOS software.

  • When I turned on my phone, it has mega fonts and I cannot access anything including the settings to turn off find my phone for restoration

    when I turned on my phone, it has mega fonts and I cannot access anything including the settings to turn off find my phone for restoration

    Double tap with three fingers on the screen and the zoom feature will be disabled again.

  • My iPhone 4S was turned off when the battery got empty, and when I put it on the charger it didn't charge at all. I tried restarting it (on/off home button for 10 sec) nothing happened except it kept giving me the "charge battery"  on its screen.

    Hi! My iPhone 4S was turned off when the battery got empty, and when I put it on the charger it didn't charge at all. I tried restarting it (on/off home button for 10 sec) nothing happened except it kept giving me the "charge battery"  on its screen. I tried with different chargers, still dead! What's weirder is that my sister who has iPhone 4 experienced the same today! No we don't live in the same house!! Does anyone have the same problem?
    Please apple support do you people have a convincing answer for us? Is there a solution? My phone is only 2 years old and was (2 hours ago), in top condition!!
    Please help....

    imanfromsweden wrote:
    Please apple support do you people have a convincing answer for us? Is there a solution? My phone is only 2 years old and was (2 hours ago), in top condition!!
    Please help....
    On belhalf of my fellow volunteers, the answer is, "We'll try our best." 
    My advice is to try not to treat this like it is a paid service provided by compensated professionals.  Ask nicely and one of the nice folks here might take some time out of their weekend to offer advice.

  • How do you turn off the special characters for letters?

    How do you turn off the special characters for letters? Where you hold down the key and it comes up with variations of the letter. For example ï í î ò œ å ß ł û
    It is very annoying when I try to play any online games. Thanks for the help

    Thank you so much It worked Thank you

  • I need to turn off my voicemail just for tonight. How do I do that?

    I need to turn off my voicemail just for tonight. How do I do that?

    Voice mail is controlled by your carrier. Call them.

  • How to turn off the authorization checks for a object in infoproviders?

    Hi - how can I turn off the authorization check for an object (ex: 0orgunit) in infoproviders?
    I have 0orgunit as an authorization-relevant object and is used in one of the cubes. When reports are run for this cube, this is causing authorization issues. The object is present in other cubes also but I have to remove or turn off the authorization check of this cube alone. How to do this? Please help.
    Thanks,
    Raj.

    Hi Raj,
    Srinivas, is right , however in BI7 the correct transaction is RSECADMIN and not RSADMIN.
    In BW3.5, use RSSM transaction to do thins.
    OR
    Go to transaction RSECAUTH ---> Choose  the authorization object that has been created for org unit(and has been assigned to the user). Go to change mode. Remove the cube from the dimension 0TCAIPROV
    If you are using old authorization concept in 3.5 or in 7.0
    Go to RSSM. In the checks for infoprovider, enter your infoprovider name. Choose change.Here you will see a checkbox to switch off the authorization.
    Hope this helps you,
    Best regards,
    Sunmit.

  • I am no longer able to turn off cellular data usage for individual apps.  When I turn most of them off, they just automatically reset themselves to allow data usage.  Any thoughts?

    I am no longer able to turn off cellular data usage for individual apps. 
    When I turn most of them off, they just automatically reset themselves to allow data usage.
    Any thoughts?

    I am definately having the same problem and cannot believe there are no answers or even support that this problem exists.  I never have to post on forumns, I read what is usually readilly availiable for the craziest of problems. 
    Anyways, the problem is just that, I can toggle off a individual app's setting of cellular data availability, but it changes right back on rescreening.  After restarting, resetting etc, it seems that the big Apple Apps are the biggest offenders.  Music is a very important one, Podcasts can kill you very quickly, app store, Photos, Facetime, Stocks?!?!?!
    When one searches for solutions I have to see hundreds of links to "How great is ios7, you can turn off cellular data for individual apps FOR DUMMIES!".  I am a dedicated apple fool since the Apple IIe (long time), but when they run afowl it is usually really bad.  Why offer an on/off switch if the setting is always on?
    I am writing just to add support to the existence of this problem, not so much for people to offer ideas of solutions as I now believe it is in the coding.
    Thank you

  • I'm using a 16GB iPhone 4s, with the latest version of iOS 8.1.1. Whenever I go to the "Cellular" settings on the main settings page and turn OFF cellular data usage for native apps like mail, app store, contacts, photos etc , the moment I back out a

    I'm using a 16GB iPhone 4S, with the latest version of iOS 8.1.1. Whenever I go to the "Cellular" settings on the main settings page and turn OFF cellular data usage for native apps like mail, app store, contacts, photos etc , the moment I back out and come back in, all the native apps I turned cellular off for are back on again. Kindly help me

    Exact same question as ankit1986, specifically with the photos while on cellular-only, and as simple as it sounds, I tried the hard reboot Ingo2711 suggested.  Still experiencing the same error with the native apps reverting to on.  It's killing our shared data-plan (2GB).

  • HT2534 How do I turn off auto Yearly renewals for news stand subscriptions. It's says in the t's & c's this can be turn off in the app store account settings, but I can't find it? Any ideas?

    How do I turn off auto Yearly renewals for news stand subscriptions. It's says in the t's &amp; c's this can be turn off in the app store account settings, but I can't find it? Any ideas

    There are instructions on this page for how to manage and cancel auto-renewing subscriptions : http://support.apple.com/kb/HT4098

  • How Can I Turn OFF Junk Mail Filter for IMAP Accounts Only?

    I am trying to figure out how to turn off the Junk Mail filtering for IMAP accounts such as .Mac/.ME and GMAIL. All filtering is working fine on the server side, and reviewing the mail that is tagged is easy enough by just going to the account and displaying the folders created on the server.
    I've checked the Junk mail pref and although the Advance settings let you isolate specific accounts to check, it does not give you the option bypass checking an account.
    i.e.
    if <Any> of the following conditions are met:
    <Account> <is not> <Gmail (IMAP)>
    As is, the mail rules are working perfectly on the server side, but in Apple Mail, many mails are being sent the Apple Mail's Junk folder.
    When going through the Gmail's instructions on setting up a Gmail account for Apple Mail, it specifically says to turn off Junk mail filtering for the account, but I can't find any options to do that.
    Any help or suggestions would be greatly appreciated.
    TIA

    I haven't tried this, but it should work:
    Make a new rule,
    If <Any> <Account> is <Gmail> or <Account> is <.me> then "Stop evaluating rules".
    Move this rule to the last in the list of rules.
    In the Junk Mail preferences, be sure that "Filter junk mail before applying my rules" is unchecked.

Maybe you are looking for

  • Itunes wont open i get "itunes libary.itl" can not be read because it was created by a newer version of itunes. help

    itunes wont open i get "itunes libary.itl" can not be read because it was created by a newer version of itunes. tried deleting itunes an re installing. help

  • JSP issue with WebLogic 9.1 but not with 8.1

    I am getting the following errors when i am trying to build an existing web application. I was able to build it successfully using weblogic 8.1.           Below are the versions i am using           Weblogic 9.1           Ant1.6.2           JDK 1.5.0

  • Why No Floating Boxes on IE8?

    I am using Adobe GL ver. 6.0 and I just spent hours formatting an image map to show/hide 7 images in floating boxes. I even placed the images carefully so there was no interference with the mouse over on the map. When I preview the page in IE it work

  • Export CHAR set problem.

    Hi, My database character set is AL32UTF8 when i exported the data the message i got at the beginning of the export is Export done in US7ASCII character set and AL16UTF16 NCHAR character set. But i want to export the data in database character set(AL

  • E90 - System error on trying to synchronise

    My e90 has synchronised OK with Outlook contacts on my PC OK for over a year. Last week I found a contact missing from the 'phone contacts.  Checking carefully I found a "blank" record in the correct place in an alpha listing.   I assume that the rec