Sponsored Content
Operating Systems AIX Networking Issues - Opera, FreeBSD, AIX Post 302647711 by admin_xor on Monday 28th of May 2012 03:32:56 PM
Old 05-28-2012
Wow!! you have too many questions!! Smilie

Well, about running Opera on FreeBSD, I am unable to help you there. These ports are meant to be broken and for a person who never uses GUI on UNIX boxes, it's difficult to troubleshoot X related issues. Sorry!

Coming to Network Link number change, are you trying to say you want to change the name of the NIC from en2 to en0?

For AIX, I can guide you through the process, but it's the hard way. Someone else might show you much simpler way though.

Here it is:
Code:
# save the info about the NIC
odmget -q name="ent2" CuDv >>/tmp/en2
odmget -q name="ent2" CuAt >>/tmp/en2
odmget -q name="ent2" CuVPD >>/tmp/en2

# Bring the interface down
ifconfig ent2 down
ifconfig ent2 detach

# remvove references from the ODM
odmdelete -q name="ent2" -o CuAt
odmdelete -q name="ent2" -o CuDv
odmdelete -q name="ent2" -o CuVPD
odmdelete -q value3="ent2" -o CuDvDr

# replace the NIC name from ent2 to ent0
sed "s/ent2/ent0/g" /emp/ent2 >/tmp/ent0

# add the new info in ODM
odmadd /tmp/ent0

# check and confirm
lsdev -Cc adapter -l ent*

If you are using production system, I would highly recommend that you consult with someone who is expert in AIX ODM before doing anything!!

For FreeBSD:
Code:
vi /etc/rc.conf
# Add the following to change the name of the NIC from em2 to em0
ifconfig_em2_name="em0"
#change the following line by substituting em2 to em0; use your own IP details
ifconfig_em0="inet 10.0.1.105 netmask 255.255.0.0"

And reboot. That's about it! Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

snort installation on freebsd issues

i'm following the, "How to setup and secure Snort, MySQL and Acid on FreeBSD 4.6 Release" off of the snort.org website. in the documentation it says snort should be installed through the following: ----- make -DWITH_MYSQL -DWITH_FLEXRESP ; make install ----- later it says to do the... (13 Replies)
Discussion started by: xyyz
13 Replies

2. UNIX for Dummies Questions & Answers

Some FreeBSD issues

I have been using Linux for 3 years now, and I think I am getting enough knowledge (and confidence) to try some more 'traditional' unix variants. I installed FreeBSD 5.0-CURRENT. I have a couple of questions for the time being: 1) Frequently when I need to compile software packages they can't... (16 Replies)
Discussion started by: cbkihong
16 Replies

3. UNIX for Dummies Questions & Answers

Installing Opera 8 on FreeBSD

I'm a n00b to UNIX, but I'm making much progress. My preferred browser is Opera, and the ported version with FBSD 5.4 is Opera 7.54. Because I lost my opera key, I'd prefer to have version 8 which does not require a key. How can I install the .tar.gz on FreeBSD? I am somewhat familiar with... (2 Replies)
Discussion started by: DrgnInterrupted
2 Replies

4. BSD

FreeBSD - Kernel Queries/Issues

All, I am a bit of a BSD newbie and haven't really played with it for years, but I have had a recent situation whereby someone attempted to load a custom kernel module and ended up breaking my BSD server. I managed to fix it by doing the following: Booting into loader mode: unload set... (3 Replies)
Discussion started by: drbabbers
3 Replies

5. Solaris

Veriuos issues with networking in Navada

I have installed OpenSolaris SVN_100a on my Hp pavillion a6230n a cuple of days ago. The network administration panel under Syste. Administration >> network is missing. How do i fix this issue? ------------------ next ---------------------- File sharing I have a macbook 13''... (0 Replies)
Discussion started by: FloridaBSD
0 Replies

6. Web Development

Using IP.Board on FreeBSD, having SQL/Apache Issues

Server: FreeBSD 7.2-RELEASE MYSQL Version: MYSQL 5.1.36 PHP Version: 5.2.10 (apache2handler) IP.Board Version: v3.0.2 Safe Mode: OFF For the most part previously IP.Board, forum software, has run fine without any issues. Regular web pages and .php pages seem to load fine without any issues.... (2 Replies)
Discussion started by: Dark Severance
2 Replies

7. UNIX for Dummies Questions & Answers

Resolved: htpasswd issues (-b) on FreeBSD

I wrote a script to batch-create directories with .htaccess and .htpasswd files. I am using the following line to create the .htpasswd file: htpasswd -cb .htpasswd $USER $PASS However, I keep getting this message in return: Usage: htpasswd passwordfile username The -c flag creates a new... (1 Reply)
Discussion started by: Spetnik
1 Replies

8. BSD

FreeBSD - Wireles Ad-hoc Networking with IP alias

Hello Friends, I'm a newbie to FreeBSD. Trying to implement a IEEE paper : Energy consumption models for ad-hoc terminals (Computers). The test setup with 3 Computers & Wireless NIC goes as follows: Transmitter (A) --------------- Forwarder (B) -------------- Receiver (C) 10.0.1.1/24 ... (0 Replies)
Discussion started by: Govindaraj
0 Replies

9. BSD

FreeBSD AMD NFS over TCP issues

Hi! I have a major issue with FreeBSD 7.1 i386. We did a change in our Unix env where we exchanged home storage from a NetAPP running udp to a NetAPP running tcp. Now I cant mount homedirs since NFS/AMD seem to fallback to udp :( Trying to force it with amd options nfs_proto=tcp and so on. ... (0 Replies)
Discussion started by: Esaia
0 Replies

10. BSD

FreeBSD DHCP wpa_supplicant Wi-Fi Issues

I just got FreeBSD up and running with an XFCE desktop on an old Gateway laptop. It works great, except the wireless setup is scaring me. I can connect to my home WiFi fine most of the time, but I'm concerned about other WiFi that I will need to connect to away from home. I understand that I can... (1 Reply)
Discussion started by: BrentBANKS
1 Replies
GETPEEREID(3)						   BSD Library Functions Manual 					     GETPEEREID(3)

NAME
getpeereid -- get the effective credentials of a UNIX-domain peer LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <sys/types.h> #include <unistd.h> int getpeereid(int s, uid_t *euid, gid_t *egid); DESCRIPTION
The getpeereid() function returns the effective user and group IDs of the peer connected to a UNIX-domain socket. The argument s must be a UNIX-domain socket (unix(4)) of type SOCK_STREAM on which either connect(2) or listen(2) have been called. The effective used ID is placed in euid, and the effective group ID in egid. The credentials returned to the listen(2) caller are those of its peer at the time it called connect(2); the credentials returned to the connect(2) caller are those of its peer at the time it called listen(2). This mechanism is reliable; there is no way for either side to influence the credentials returned to its peer except by calling the appropriate system call (i.e., either connect(2) or listen(2)) under different effective credentials. One common use of this routine is for a UNIX-domain server to verify the credentials of its client. Likewise, the client can verify the cre- dentials of the server. IMPLEMENTATION NOTES
On FreeBSD, getpeereid() is implemented in terms of the LOCAL_PEERCRED unix(4) socket option. RETURN VALUES
The getpeereid() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indi- cate the error. ERRORS
The getpeereid() function fails if: [EBADF] The argument s is not a valid descriptor. [ENOTSOCK] The argument s is a file, not a socket. [ENOTCONN] The argument s does not refer to a socket on which connect(2) or listen(2) have been called. [EINVAL] The argument s does not refer to a socket of type SOCK_STREAM, or the kernel returned invalid data. SEE ALSO
connect(2), getpeername(2), getsockname(2), getsockopt(2), listen(2), unix(4) HISTORY
The getpeereid() function appeared in FreeBSD 4.6. BSD
July 15, 2001 BSD
All times are GMT -4. The time now is 12:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy